Selaa lähdekoodia

fix icon update with retina scaling

Johann ELSASS 5 vuotta sitten
vanhempi
commit
9b12c96d91
1 muutettua tiedostoa jossa 9 lisäystä ja 0 poistoa
  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;