Changeset 265 for branches/highdpi/LocalPlayer/IsoEngine.pas
- Timestamp:
- Jun 25, 2020, 10:24:44 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/IsoEngine.pas
r246 r265 375 375 begin 376 376 for i := 0 to yyt * 3 - 1 do 377 MaskLine[i] := PixelPointer(Mask24, 0, 1 + ySrc * (yyt * 3 + 1) + i); 378 for xSrc := 0 to 9 - 1 do 379 begin 380 i := ySrc * 9 + xSrc; 377 MaskLine[i] := PixelPointer(Mask24, 0, ScaleToNative(1 + ySrc * (yyt * 3 + 1) + i)); 378 for xSrc := 0 to TerrainIconCols - 1 do begin 379 i := ySrc * TerrainIconCols + xSrc; 381 380 TSpriteSize[i].Left := 0; 382 381 repeat 383 382 Border := true; 384 383 for y := 0 to yyt * 3 - 1 do begin 385 MaskLine[y].SetX( 1 + xSrc * (xxt * 2 + 1) + TSpriteSize[i].Left);384 MaskLine[y].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + TSpriteSize[i].Left)); 386 385 if MaskLine[y].Pixel^.B = 0 then Border := false; 387 386 end; … … 392 391 Border := true; 393 392 for x := 0 to xxt * 2 - 1 do begin 394 MaskLine[TSpriteSize[i].Top].SetX( 1 + xSrc * (xxt * 2 + 1) + x);393 MaskLine[TSpriteSize[i].Top].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + x)); 395 394 if MaskLine[TSpriteSize[i].Top].Pixel^.B = 0 then Border := false; 396 395 end; … … 401 400 Border := true; 402 401 for y := 0 to yyt * 3 - 1 do begin 403 MaskLine[y].SetX( xSrc * (xxt * 2 + 1) + TSpriteSize[i].Right);402 MaskLine[y].SetX(ScaleToNative(xSrc * (xxt * 2 + 1) + TSpriteSize[i].Right)); 404 403 if MaskLine[y].Pixel^.B = 0 then Border := false; 405 404 end; … … 410 409 Border := true; 411 410 for x := 0 to xxt * 2 - 1 do begin 412 MaskLine[TSpriteSize[i].Bottom - 1].SetX( 1 + xSrc * (xxt * 2 + 1) + x);411 MaskLine[TSpriteSize[i].Bottom - 1].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + x)); 413 412 if MaskLine[TSpriteSize[i].Bottom - 1].Pixel^.B = 0 then Border := false; 414 413 end; … … 1079 1078 if not(FoW and (Tile and fObserved = 0)) then 1080 1079 PaintBorder; 1081 1082 1080 if (Loc >= 0) and (Loc < G.lx * G.ly) and (Loc = FAdviceLoc) then 1083 1081 TSprite(x, y, spPlain); … … 1289 1287 i: integer; 1290 1288 begin 1289 FOutput.Canvas.pen.Color := $000000; // $FF shl (8*random(3)); 1291 1290 FOutput.Canvas.pen.Color := $000000; // $FF shl (8*random(3)); 1292 1291 for i := 0 to nx div 2 do … … 1560 1559 PaintTileExtraTerrain(x + xxt * dx, y + yyt + yyt * dy, 1561 1560 dLoc(Loc, dx, dy)); 1561 1562 1562 if CityOwner >= 0 then 1563 1563 begin
Note:
See TracChangeset
for help on using the changeset viewer.