[Win32k]
authorJames Tabor <james.tabor@reactos.org>
Fri, 18 Sep 2015 09:28:20 +0000 (09:28 +0000)
committerJames Tabor <james.tabor@reactos.org>
Fri, 18 Sep 2015 09:28:20 +0000 (09:28 +0000)
- Fix a activation drawing issue, if the window is not activated do not draw it active. Used testmenu program from CORE-1573 to test it. If this creates a new problem please open a Jira report.

svn path=/trunk/; revision=69263

reactos/win32ss/user/ntuser/nonclient.c

index dcefc8b..6fa7dab 100644 (file)
@@ -1096,11 +1096,12 @@ NC_DoNCPaint(PWND pWnd, HDC hDC, INT Flags)
 
       if (Active)
       {
-         if (!(pWnd->state & WNDS_ACTIVEFRAME))
+         if (pWnd->state & WNDS_ACTIVEFRAME)
+            Flags |= DC_ACTIVE;
+         else
          {
             ERR("Wnd is active and not set active!\n");
          }
-         Flags |= DC_ACTIVE;
       }
 
       TempRect = CurrentRect;