+ OutputDebugString("=> Clipper->SetHWnd\n");
+ hResult = Clipper->SetHWnd(0,hwnd);
+ if (hResult != DD_OK)
+ {
+ MessageBox(0,DDErrorString(hResult), "Clipper->SetHWnd", 0);
+ return 0;
+ }
+
+ OutputDebugString("=> Suface->SetClipper\n");
+ hResult = FrontBuffer->SetClipper(Clipper);
+ if (hResult != DD_OK)
+ {
+ MessageBox(0,DDErrorString(hResult), "FrontBuffer->SetClipper", 0);
+ return 0;
+ }
+#endif
+