Mercurial > dwindows
comparison win/dw.c @ 2155:d953786b2e85
Win: Fix a minor logic problem in the dark mode code, identified by the Visua C IDE.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 18 Sep 2020 08:13:31 +0000 |
parents | dfc64135adb6 |
children | 05dd5189099f |
comparison
equal
deleted
inserted
replaced
2154:a8b55524b1b2 | 2155:d953786b2e85 |
---|---|
823 MARGINS _dw_rect_to_margins(RECT rect) | 823 MARGINS _dw_rect_to_margins(RECT rect) |
824 { | 824 { |
825 /* Left, Right, Top, Bottom */ | 825 /* Left, Right, Top, Bottom */ |
826 MARGINS mar = { 1, 1, rect.top, 1 }, none = {0}; | 826 MARGINS mar = { 1, 1, rect.top, 1 }, none = {0}; |
827 | 827 |
828 if(_DW_DARK_MODE_ALLOWED > DW_DARK_MODE_BASIC & _DW_DARK_MODE_SUPPORTED) | 828 if(_DW_DARK_MODE_ALLOWED > DW_DARK_MODE_BASIC && _DW_DARK_MODE_SUPPORTED) |
829 return mar; | 829 return mar; |
830 return none; | 830 return none; |
831 } | 831 } |
832 | 832 |
833 BOOL _DW_CanThemeWindow(HWND window) | 833 BOOL _DW_CanThemeWindow(HWND window) |