Ver Fonte

Merge branch 'main' into isscint-update

# Conflicts:
#	Projects/Src/CompForm.pas
Martijn Laan há 1 ano atrás
pai
commit
97c052cc4a
1 ficheiros alterados com 4 adições e 0 exclusões
  1. 4 0
      Projects/Src/CompForm.pas

+ 4 - 0
Projects/Src/CompForm.pas

@@ -3402,6 +3402,10 @@ begin
       try
       try
         BkBrush.Color := FTheme.Colors[tcMarginBack];
         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 BitmapInfo := CreateBitmapInfo(ImageList.Width, -ImageList.Height, 32);
 
 
         var NamedMarkers := [
         var NamedMarkers := [