浏览代码

fix icon update with retina scaling

Johann ELSASS 5 年之前
父节点
当前提交
9b12c96d91
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      lazpaint/umyslv.pas

+ 9 - 0
lazpaint/umyslv.pas

@@ -1254,7 +1254,16 @@ begin
   if (AIndex < 0) or (AIndex >= ItemCount) then
     result := EmptyRect
   else
+  begin
     result := FData[AIndex].displayRect;
+    with result do
+    begin
+      left := round(left/FScaling);
+      right := round(right/FScaling);
+      top := round(top/FScaling);
+      bottom := round(bottom/FScaling);
+    end;
+  end;
 end;
 
 function TLCShellListView.InternalSelectAll: boolean;