Parcourir la source

Add workaround for DPI over 200%. Won't be needed on the isscint-update branch.

Martijn Laan il y a 1 an
Parent
commit
56a2b739f4
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      Projects/Src/CompForm.pas

+ 4 - 0
Projects/Src/CompForm.pas

@@ -3365,6 +3365,10 @@ begin
       try
         BkBrush.Color := FTheme.Colors[tcMarginBack];
 
+        { Workaround for DPI over 200%, has too many colors for current XPM usage }
+        if (ImageList.Width > 24) or (ImageList.Height > 24) then
+          ImageList.SetSize(24, 24);
+
         var BitmapInfo := CreateBitmapInfo(ImageList.Width, ImageList.Height, 24);
 
         var IconBreakpointStepName: String;