changeset 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 a8b55524b1b2
children 1337859c1a20
files win/dw.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/win/dw.c	Fri Sep 18 00:21:30 2020 +0000
+++ b/win/dw.c	Fri Sep 18 08:13:31 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_SUPPORTED)
+   if(_DW_DARK_MODE_ALLOWED > DW_DARK_MODE_BASIC && _DW_DARK_MODE_SUPPORTED)
       return mar;
    return none;
 }