Przeglądaj źródła

Merge branch 'main' into isscint-update

# Conflicts:
#	Projects/Src/CompForm.pas
Martijn Laan 1 rok temu
rodzic
commit
97c052cc4a
1 zmienionych plików z 4 dodań i 0 usunięć
  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 := [