Explorar o código

clear2black does Gdiflush

cxgeorge %!s(int64=23) %!d(string=hai) anos
pai
achega
1262f0ceb2
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx

+ 1 - 0
panda/src/wdxdisplay8/wdxGraphicsWindow8.cxx

@@ -180,6 +180,7 @@ void ClearToBlack(HWND hWnd,GraphicsWindow::Properties &props) {
     FillRect(hDC,&clrRect,(HBRUSH)GetStockObject(BLACK_BRUSH));
 //          PatBlt(hDC,_props._xorg,_props._yorg,_props._xsize,_props._ysize,BLACKNESS);
     ReleaseDC(hWnd,hDC);
+    GdiFlush();
 }
 
 // fn exists so AtExitFn can call it without refcntr blowing up since its !=0