зеркало из https://github.com/mozilla/gecko-dev.git
r=pavlov, sr=waterson Get 256 colors working again - step 3 - handle palette messages in nsWindow
This commit is contained in:
Родитель
e5a314b39d
Коммит
8a1d2adcc0
|
@ -2960,6 +2960,7 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
|||
static PRBool getWheelInfo = PR_TRUE;
|
||||
*aRetValue = 0;
|
||||
PRBool isMozWindowTakingFocus = PR_TRUE;
|
||||
nsPaletteInfo palInfo;
|
||||
|
||||
// Uncomment this to see all windows messages
|
||||
// first param showss all events
|
||||
|
@ -3403,7 +3404,6 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
|||
::GetClassName((HWND)wParam, className, 19);
|
||||
if(strcmp(className, WindowClass()))
|
||||
isMozWindowTakingFocus = PR_FALSE;
|
||||
|
||||
if(gJustGotDeactivate) {
|
||||
gJustGotDeactivate = PR_FALSE;
|
||||
result = DispatchFocus(NS_DEACTIVATE, isMozWindowTakingFocus);
|
||||
|
@ -3520,7 +3520,6 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
|||
// fall thru...
|
||||
|
||||
case WM_QUERYNEWPALETTE: // this window is about to become active
|
||||
#if 0
|
||||
mContext->GetPaletteInfo(palInfo);
|
||||
if (palInfo.isPaletteDevice && palInfo.palette) {
|
||||
HDC hDC = ::GetDC(mWnd);
|
||||
|
@ -3539,7 +3538,6 @@ PRBool nsWindow::ProcessMessage(UINT msg, WPARAM wParam, LPARAM lParam, LRESULT
|
|||
*aRetValue = TRUE;
|
||||
}
|
||||
result = PR_TRUE;
|
||||
#endif
|
||||
break;
|
||||
|
||||
case WM_INPUTLANGCHANGEREQUEST:
|
||||
|
|
Загрузка…
Ссылка в новой задаче