浏览代码

Merge branch 'main' into isscint-update

# Conflicts:
#	Projects/Src/CompForm.pas
Martijn Laan 1 年之前
父节点
当前提交
97c052cc4a
共有 1 个文件被更改,包括 4 次插入0 次删除
  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 := [