diff --git a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx index 6a8d9de151..32aa0b6103 100644 --- a/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx +++ b/panda/src/dxgsg8/dxGraphicsStateGuardian8.cxx @@ -904,7 +904,8 @@ init_shader(ShaderType stype,DXShaderHandle &hShader,string *pFname) { void DXGraphicsStateGuardian8:: support_overlay_window(bool flag) { // How is this supposed to be done in DX8? - + //_bDXisReady = !flag; + //dxgsg8_cat.debug() << "Set DxReady to " << _bDXisReady << "\n"; /* if (_overlay_windows_supported && !flag) { // Disable support for overlay windows. diff --git a/panda/src/dxgsg8/wdxGraphicsWindow8.cxx b/panda/src/dxgsg8/wdxGraphicsWindow8.cxx index 8505d5eb43..68399effc9 100644 --- a/panda/src/dxgsg8/wdxGraphicsWindow8.cxx +++ b/panda/src/dxgsg8/wdxGraphicsWindow8.cxx @@ -255,6 +255,17 @@ void wdxGraphicsWindow8:: end_flip() { if (_dxgsg != (DXGraphicsStateGuardian8 *)NULL && is_active()) { // wdxdisplay8_cat.debug() << "current swapchain from end_flip is " << _wcontext.pSwapChain << "\n"; + // if (DX_IS_READY || !is_fullscreen()) + /* Test code + HWND ime_hwnd = get_ime_hwnd(); + if (ime_hwnd) { + int t = SendMessage(ime_hwnd, WM_PAINT, (WPARAM)GetDC(_hWnd), PRF_CLIENT); + if (t) + wdxdisplay8_cat.debug() << "SendMessage failed for " << ime_hwnd << "\n"; + else + wdxdisplay8_cat.debug() << "SendMessage succeeded for " << ime_hwnd << "\n"; + } + */ _dxgsg->show_frame(); } GraphicsWindow::end_flip();