changeset 2143:628ffe85b946

Win: Fix titlebar rendering with full dark mode enabled, but in light mode.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 17 Jul 2020 00:16:36 +0000
parents 81362474b5e9
children e7a68eea2fa0
files win/dw.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Thu Jul 16 21:36:44 2020 +0000
+++ b/win/dw.c	Fri Jul 17 00:16:36 2020 +0000
@@ -825,7 +825,7 @@
    /* Left, Right, Top, Bottom */
    MARGINS mar = { 1, 1, rect.top, 1 }, none = {0};
    
-   if(_DW_DARK_MODE_ALLOWED > DW_DARK_MODE_BASIC & _DW_DARK_MODE_ENABLED)
+   if(_DW_DARK_MODE_ALLOWED > DW_DARK_MODE_BASIC & _DW_DARK_MODE_SUPPORTED)
       return mar;
    return none;
 }
@@ -2221,8 +2221,8 @@
    else if(msg == WM_ACTIVATE && _DW_DARK_MODE_SUPPORTED && _DW_DARK_MODE_ALLOWED > DW_DARK_MODE_BASIC)
    {
       RECT rect;
-      GetWindowRect(hWnd , &rect);
-      PostMessage(hWnd, WM_SIZE , 0 , MAKELPARAM(rect.right-rect.left, rect.bottom-rect.top));
+      GetWindowRect(hWnd, &rect);
+      PostMessage(hWnd, WM_SIZE, 0, MAKELPARAM(rect.right-rect.left, rect.bottom-rect.top));
    }
    else if(msg == WM_PAINT && _DW_DARK_MODE_ALLOWED > DW_DARK_MODE_BASIC && _DW_DARK_MODE_SUPPORTED && GetParent(hWnd) == HWND_DESKTOP)
    {