Explorar o código

stack checkers scaling

Johann ELSASS %!s(int64=5) %!d(string=hai) anos
pai
achega
5fe73e61e1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      lazpaint/dialog/ulayerstackinterface.pas

+ 1 - 1
lazpaint/dialog/ulayerstackinterface.pas

@@ -831,7 +831,7 @@ procedure TLayerStackInterface.NeedCheckers;
 var
   checkerSize: Integer;
 begin
-  checkerSize := DoScaleX(2, OriginalDPI, DPI);
+  checkerSize := DoScaleX(round(2*FScaling), OriginalDPI, DPI);
   if Assigned(FRegularBackground) and (FRegularBackground.Width <> checkerSize*2) then
   begin
     FreeAndNil(FRegularBackground);