Explorar o código

alignment to pixels

Unknown %!s(int64=6) %!d(string=hai) anos
pai
achega
20ea706786

BIN=BIN
lazpaint/buttons/vector/filenew32.lzp


BIN=BIN
lazpaint/buttons/vector/filesave32.lzp


BIN=BIN
lazpaint/buttons/vector/filesaveas32.lzp


BIN=BIN
lazpaint/buttons/vector/movedown32.lzp


BIN=BIN
lazpaint/buttons/vector/movetoback32.lzp


BIN=BIN
lazpaint/buttons/vector/movetofront32.lzp


BIN=BIN
lazpaint/buttons/vector/moveup32.lzp


BIN=BIN
lazpaint/buttons/vector/paste32.lzp


+ 1 - 1
vectoredit/uvectorshapes.pas

@@ -597,7 +597,7 @@ begin
     begin
       if ADraft then
       begin
-        r:= rect(round(orthoRect.Left),round(orthoRect.Top),round(orthoRect.Right),round(orthoRect.Bottom));
+        r:= rect(round(orthoRect.Left+0.5),round(orthoRect.Top+0.5),round(orthoRect.Right+0.5),round(orthoRect.Bottom+0.5));
         if Assigned(backScan) then
           ADest.FillRect(r, backScan, dmDrawWithTransparency) else
           ADest.FillRect(r, BackFill.SolidColor, dmDrawWithTransparency)