Explorar o código

fix icon update with retina scaling

Johann ELSASS %!s(int64=5) %!d(string=hai) anos
pai
achega
9b12c96d91
Modificáronse 1 ficheiros con 9 adicións e 0 borrados
  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;