Add WM_QUERYNEWPALETTE in appropriate places of the message test

Dmitry Timoshkov dmitry at baikal.ru
Sun Apr 11 03:29:22 CDT 2004


Hello,

this patch reduces number of failures in the message test under Wine.

Do we have somewhere in USER a cached display bit depth in order
to avoid sending WM_QUERYNEWPALETTE message in a not paletted mode?

Changelog:
    Dmitry Timoshkov <dmitry at codeweavers.com>
    Add WM_QUERYNEWPALETTE in appropriate places of the message test.

--- cvs/hq/wine/dlls/user/tests/msg.c	Fri Apr 09 01:13:02 2004
+++ wine/dlls/user/tests/msg.c	Sun Apr 11 08:15:48 2004
@@ -67,11 +67,11 @@ static const struct message WmShowOverla
     { WM_SHOWWINDOW, sent|wparam, 1 },
     { WM_NCPAINT, sent|wparam|optional, 1 },
     { WM_WINDOWPOSCHANGING, sent|wparam, 0 },
-    /* FIXME: WM_QUERYNEWPALETTE, if in 256-color mode */
     { WM_NCPAINT, sent|wparam|optional, 1 },
     { WM_GETTEXT, sent|defwinproc|optional },
     { WM_ERASEBKGND, sent|optional },
     { HCBT_ACTIVATE, hook },
+    { WM_QUERYNEWPALETTE, sent|wparam|lparam|optional, 0, 0 },
     { WM_WINDOWPOSCHANGING, sent|wparam, 0 },
     { WM_ACTIVATEAPP, sent|wparam, 1 },
     { WM_NCACTIVATE, sent|wparam, 1 },
@@ -143,6 +143,7 @@ static const struct message WmShowVisibl
 static const struct message WmShowVisiblePopupSeq_3[] = {
     { WM_WINDOWPOSCHANGING, sent|wparam, 0 },
     { HCBT_ACTIVATE, hook },
+    { WM_QUERYNEWPALETTE, sent|wparam|lparam|optional, 0, 0 },
     { WM_WINDOWPOSCHANGING, sent|wparam, 0 },
     { WM_NCACTIVATE, sent|wparam, 1 },
     { WM_ACTIVATE, sent|wparam, 1 },






More information about the wine-patches mailing list