Changeset 538 for trunk/LocalPlayer/IsoEngine.pas
- Timestamp:
- Apr 16, 2024, 10:57:39 AM (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/IsoEngine.pas
r537 r538 52 52 DefHealth: Integer; 53 53 FAdviceLoc: Integer; 54 DataCanvas: TCanvas;55 MaskCanvas: TCanvas;56 54 LandPatch: TBitmap; 57 55 OceanPatch: TBitmap; … … 329 327 raise Exception.Create(FileName + ' not found.'); 330 328 329 331 330 FileName := Format('Cities%dx%d.png', [xxt * 2, yyt * 2]); 332 331 IsoMapCache[ATileSize].HGrCities := LoadGraphicSet(FileName); … … 584 583 begin 585 584 FOutput.Canvas.Font.Color := Color; 586 FOutput.Canvas.TextRect(Rect(FLeft, FTop, FRight, FBottom), X, Y, S) 585 FOutput.Canvas.TextRect(Rect(FLeft, FTop, FRight, FBottom), X, Y, S); 587 586 end; 588 587 … … 593 592 begin 594 593 Width := Width - (FLeft - X); 595 xSrc := xSrc + (FLeft - X);594 XSrc := XSrc + (FLeft - X); 596 595 X := FLeft; 597 596 end; … … 599 598 begin 600 599 Height := Height - (FTop - Y); 601 ySrc := ySrc + (FTop - Y);600 YSrc := YSrc + (FTop - Y); 602 601 Y := FTop; 603 602 end; … … 609 608 Exit; 610 609 610 {$IFDEF DPI} 611 611 BitBltBitmap(FOutput, X, Y, Width, Height, Src, xSrc, ySrc, Rop); 612 {$ELSE} 613 BitBltCanvas(FOutput.Canvas, X, Y, Width, Height, Src.Canvas, xSrc, ySrc, Rop); 614 {$ENDIF} 612 615 end; 613 616 … … 649 652 Exit; 650 653 651 BitBlt Canvas(FOutput.Canvas, xDst, yDst, Width, Height, MaskCanvas, xSrc, ySrc, SRCAND);654 BitBltBitmap(FOutput, xDst, yDst, Width, Height, HGrTerrain.Mask, xSrc, ySrc, SRCAND); 652 655 if not PureBlack then 653 BitBlt Canvas(FOutput.Canvas, xDst, yDst, Width, Height, DataCanvas, xSrc, ySrc, SRCPAINT);656 BitBltBitmap(FOutput, xDst, yDst, Width, Height, HGrTerrain.Data, xSrc, ySrc, SRCPAINT); 654 657 end; 655 658 … … 707 710 if Flags and unFortified <> 0 then 708 711 begin 709 { DataCanvas := HGrTerrain.Data.Canvas; 710 MaskCanvas := HGrTerrain.Mask.Canvas; 711 TerrainSprite(X, Y + 16, 12 * 9 + 7); } 712 { TerrainSprite(X, Y + 16, 12 * 9 + 7); } 712 713 Sprite(HGrStdUnits, X, Y, xxu * 2, yyu * 2, 1 + 6 * (xxu * 2 + 1), 1); 713 714 end; … … 1152 1153 end; { square not discovered } 1153 1154 1154 if not (FoW and (Tile and fObserved = 0)) then1155 if not (FoW and (Tile and fObserved = 0)) then 1155 1156 PaintBorder; 1156 1157 … … 1569 1570 end; 1570 1571 BitBltBitmapOutput(OceanPatch, X + dx * xxt, Y + dy * yyt, xxt, yyt, 1571 Aix * (xxt * 2) + (dx + dy + 1) and 1 * xxt, bix * yyt, SRCCOPY) 1572 end 1572 Aix * (xxt * 2) + (dx + dy + 1) and 1 * xxt, bix * yyt, SRCCOPY); 1573 end; 1573 1574 end 1574 1575 else … … 1625 1626 else 1626 1627 BitBltBitmapOutput(LandPatch, X + dx * xxt, Y + dy * yyt, xxt, yyt, 1627 Aix * (xxt * 2) + (dx + dy + 1) and 1 * xxt, bix * yyt, SRCCOPY) 1628 Aix * (xxt * 2) + (dx + dy + 1) and 1 * xxt, bix * yyt, SRCCOPY); 1628 1629 end; 1629 1630 end; 1630 1631 1631 DataCanvas := HGrTerrain.Data.Canvas;1632 MaskCanvas := HGrTerrain.Mask.Canvas;1633 1632 for dy := -2 to ny + 1 do 1634 1633 for dx := -1 to nx do … … 1640 1639 PaintTileExtraTerrain(X + xxt * dx, Y + yyt + yyt * dy, 1641 1640 dLoc(Loc, dx, dy)); 1641 1642 1642 if CityOwner >= 0 then 1643 1643 begin
Note:
See TracChangeset
for help on using the changeset viewer.