some test code for ime_window to disappear

This commit is contained in:
Asad M. Zaman 2004-04-07 17:42:24 +00:00
parent 4f7fed1693
commit 85ff1a83db
2 changed files with 13 additions and 1 deletions

View File

@ -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.

View File

@ -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();