Bug 591154 - Fix for Quake Live flickering when entering full screen mode. r=roc, a=final.

This commit is contained in:
Jim Mathies 2010-11-05 10:19:05 -05:00
parent c0b0832655
commit bc8f55e1ed
2 changed files with 6 additions and 2 deletions

View File

@ -323,7 +323,7 @@ nsUXThemeData::UpdateTitlebarInfo(HWND aWnd)
nsToolkit::mDllInstance, NULL);
NS_ASSERTION(hWnd, "UpdateTitlebarInfo window creation failed.");
ShowWindow(hWnd, SW_SHOW);
ShowWindow(hWnd, SW_SHOWNOACTIVATE);
TITLEBARINFOEX info = {0};
info.cbSize = sizeof(TITLEBARINFOEX);
SendMessage(hWnd, WM_GETTITLEBARINFOEX, 0, (LPARAM)&info);

View File

@ -5911,6 +5911,10 @@ void nsWindow::OnWindowPosChanged(WINDOWPOS *wp, PRBool& result)
printf("SWP_NOSIZE ");
if (wp->flags & SWP_HIDEWINDOW)
printf("SWP_HIDEWINDOW ");
if (wp->flags & SWP_NOZORDER)
printf("SWP_NOZORDER ");
if (wp->flags & SWP_NOACTIVATE)
printf("SWP_NOACTIVATE ");
printf("\n");
#endif
@ -5983,7 +5987,7 @@ void nsWindow::OnWindowPosChanged(WINDOWPOS *wp, PRBool& result)
}
// Handle window size changes
if (0 == (wp->flags & SWP_NOSIZE)) {
if (!(wp->flags & SWP_NOSIZE)) {
RECT r;
PRInt32 newWidth, newHeight;