Browse Source

Merge branch 'main' into isscint-update

# Conflicts:
#	Projects/Src/CompForm.pas
Martijn Laan 1 year ago
parent
commit
97c052cc4a
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Projects/Src/CompForm.pas

+ 4 - 0
Projects/Src/CompForm.pas

@@ -3402,6 +3402,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, 32);
 
         var NamedMarkers := [