Changeset 209 for trunk/LocalPlayer/CityScreen.pas
- Timestamp:
- May 9, 2020, 11:59:40 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r206 r209 260 260 Back.Canvas.FillRect(0, 0, ClientWidth, ClientHeight); 261 261 262 bitbltCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight,262 BitBltCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight, 263 263 MainTexture.Image.Canvas, 0, 0); 264 264 ImageOp_B(Back, Template, 0, 0, 0, 0, ClientWidth, ClientHeight); … … 291 291 Color2 := Colors.Canvas.Pixels[clkAge0 + Age, cliHouse]; 292 292 SmallCityMap.Canvas.FillRect(0, 0, SmallCityMap.Width, SmallCityMap.Height); 293 bitbltCanvas(SmallCityMap.Canvas, 0, 0, 83, hSmallMap,293 BitBltCanvas(SmallCityMap.Canvas, 0, 0, 83, hSmallMap, 294 294 SmallCityMapTemplate.Canvas, 83 * SizeClass, 0); 295 295 if IsPort then 296 296 begin 297 bitbltCanvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,297 BitBltCanvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap, 298 298 SmallCityMapTemplate.Canvas, 332 + 15, 0); 299 299 ImageOp_CCC(SmallCityMap, 0, 0, 83, hSmallMap, Color0, Color1, Color2); … … 303 303 else 304 304 begin 305 bitbltCanvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,305 BitBltCanvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap, 306 306 SmallCityMapTemplate.Canvas, 332, 0); 307 307 ImageOp_CCC(SmallCityMap, 0, 0, wSmallMap, hSmallMap, Color0, … … 311 311 with SmallCityMap.Canvas do 312 312 begin 313 brush.Color := ScreenTools.Colors.Canvas.Pixels[clkAge0 + Age, cliImp];313 Brush.Color := ScreenTools.Colors.Canvas.Pixels[clkAge0 + Age, cliImp]; 314 314 for i := 0 to 29 do 315 315 begin … … 359 359 ZoomCityMap.Canvas.FillRect(0, 0, ZoomCityMap.Width, ZoomCityMap.Height); 360 360 361 bitbltCanvas(ZoomCityMap.Canvas, 0, 0, wZoomMap, hZoomMap,361 BitBltCanvas(ZoomCityMap.Canvas, 0, 0, wZoomMap, hZoomMap, 362 362 Back.Canvas, xZoomMap, yZoomMap); 363 363 if Mode = mImp then begin … … 542 542 RedTex.clTextShade := $0000FF; 543 543 544 bitbltCanvas(offscreen.Canvas, 0, 0, 640, 480, Back.Canvas, 0, 0);545 546 offscreen.Canvas.Font.Assign(UniFont[ftCaption]);544 BitBltCanvas(offscreen.Canvas, 0, 0, 640, 480, Back.Canvas, 0, 0); 545 546 Offscreen.Canvas.Font.Assign(UniFont[ftCaption]); 547 547 RisedTextOut(offscreen.Canvas, 42, 7, Caption); 548 548 with offscreen.Canvas do … … 557 557 TextOut(8 + 14 - textwidth(s) div 2, 7, s); 558 558 end; 559 offscreen.Canvas.Font.Assign(UniFont[ftSmall]);559 Offscreen.Canvas.Font.Assign(UniFont[ftSmall]); 560 560 561 561 if not IsCityAlive then … … 613 613 false, AllowChange and IsCityAlive and 614 614 (c.Status and csResourceWeightsMask = 0)); 615 bitbltCanvas(offscreen.Canvas, xmArea + 102, 42, 90, 33, Back.Canvas,615 BitBltCanvas(offscreen.Canvas, xmArea + 102, 42, 90, 33, Back.Canvas, 616 616 xmArea + 102, 42); 617 617 … … 644 644 else 645 645 xGr := 141; 646 bitbltCanvas(offscreen.Canvas, xmArea - 192 + 5 + i * d, ymArea - 96 - 29,646 BitBltCanvas(offscreen.Canvas, xmArea - 192 + 5 + i * d, ymArea - 96 - 29, 647 647 27, 30, GrExt[HGrSystem].Mask.Canvas, xGr, 171, SRCAND); { shadow } 648 648 Sprite(offscreen, HGrSystem, xmArea - 192 + 4 + i * d, ymArea - 96 - 30, 27, … … 656 656 begin 657 657 xGr := 1 + 112; 658 bitbltCanvas(offscreen.Canvas, xmArea + 192 - 27 + 1 - i * d, 29 + 1, 27,658 BitBltCanvas(offscreen.Canvas, xmArea + 192 - 27 + 1 - i * d, 29 + 1, 27, 659 659 30, GrExt[HGrSystem].Mask.Canvas, xGr, 171, SRCAND); { shadow } 660 660 Sprite(offscreen, HGrSystem, xmArea + 192 - 27 - i * d, 29, 27, 30, … … 802 802 803 803 // small map 804 bitbltCanvas(offscreen.Canvas, xSmallMap, ySmallMap, wSmallMap, hSmallMap,804 BitBltCanvas(offscreen.Canvas, xSmallMap, ySmallMap, wSmallMap, hSmallMap, 805 805 SmallCityMap.Canvas, 0, 0); 806 806 if Mode = mImp then … … 830 830 Sprite(offscreen, HGrSystem, x + 6, y - 5, 10, 10, 154, 126); 831 831 832 bitbltCanvas(offscreen.Canvas, xZoomMap, yZoomMap, wZoomMap, hZoomMap,832 BitBltCanvas(offscreen.Canvas, xZoomMap, yZoomMap, wZoomMap, hZoomMap, 833 833 ZoomCityMap.Canvas, 0, 0); 834 834 … … 1619 1619 with Canvas do 1620 1620 begin 1621 bitbltCanvas(Canvas, xView + 5, yView + 1, 64, 2, Back.Canvas,1621 BitBltCanvas(Canvas, xView + 5, yView + 1, 64, 2, Back.Canvas, 1622 1622 xView + 5, yView + 1); 1623 bitbltCanvas(Canvas, xView + 5, yView + 3, 2, 42, Back.Canvas,1623 BitBltCanvas(Canvas, xView + 5, yView + 3, 2, 42, Back.Canvas, 1624 1624 xView + 5, yView + 3); 1625 bitbltCanvas(Canvas, xView + 5 + 62, yView + 3, 2, 42,1625 BitBltCanvas(Canvas, xView + 5 + 62, yView + 3, 2, 42, 1626 1626 Back.Canvas, xView + 5 + 62, yView + 3); 1627 1627 ScreenTools.Frame(Canvas, xView + 9 - 1, yView + 5 - 1, xView + 9 + xSizeBig, … … 1629 1629 RFrame(Canvas, xView + 9 - 2, yView + 5 - 2, xView + 9 + xSizeBig + 1, 1630 1630 yView + 5 + ySizeBig + 1, $FFFFFF, $B0B0B0); 1631 brush.Color := $000000;1631 Brush.Color := $000000; 1632 1632 FillRect(Rect(xView + 9, yView + 5, xView + 1 + 72 - 8, 1633 1633 yView + 5 + 40)); 1634 brush.style := bsClear;1634 Brush.style := bsClear; 1635 1635 end 1636 1636 else if BlinkTime = 6 then … … 1643 1643 else if c.Project and cpImp = 0 then 1644 1644 begin // project is unit 1645 bitbltCanvas(Canvas, xView + 9, yView + 5, xSizeBig, ySizeBig,1646 bigimp.Canvas, 0, 0);1645 BitBltCanvas(Canvas, xView + 9, yView + 5, xSizeBig, ySizeBig, 1646 Bigimp.Canvas, 0, 0); 1647 1647 with Tribe[cOwner].ModelPicture[c.Project and cpIndex] do 1648 1648 Sprite(Canvas, HGr, xView + 5, yView + 1, 64, 44, pix mod 10 * 65 + 1,
Note:
See TracChangeset
for help on using the changeset viewer.