Changeset 530 for trunk/LocalPlayer/CityScreen.pas
- Timestamp:
- Feb 24, 2024, 8:04:26 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/CityScreen.pas
r471 r530 275 275 276 276 UnshareBitmap(Back); 277 BitBltCanvas(Back.Canvas, 0, 0, Width, Height, 278 MainTexture.Image.Canvas, 0, 0); 277 BitBltBitmap(Back, 0, 0, Width, Height, MainTexture.Image, 0, 0); 279 278 ImageOp_B(Back, Template, 0, 0, 0, 0, Width, Height); 280 279 end; … … 303 302 Color2 := Colors.Canvas.Pixels[clkAge0 + Age, cliHouse]; 304 303 SmallCityMap.Canvas.FillRect(0, 0, SmallCityMap.Width, SmallCityMap.Height); 305 BitBlt Canvas(SmallCityMap.Canvas, 0, 0, 83, hSmallMap,306 SmallCityMapTemplate .Canvas, 83 * SizeClass, 0);304 BitBltBitmap(SmallCityMap, 0, 0, 83, hSmallMap, 305 SmallCityMapTemplate, 83 * SizeClass, 0); 307 306 if IsPort then 308 307 begin 309 BitBlt Canvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,310 SmallCityMapTemplate .Canvas, 332 + 15, 0);308 BitBltBitmap(SmallCityMap, 83, 0, 15, hSmallMap, 309 SmallCityMapTemplate, 332 + 15, 0); 311 310 ImageOp_CCC(SmallCityMap, 0, 0, 83, hSmallMap, Color0, Color1, Color2); 312 311 Color2 := Colors.Canvas.Pixels[clkCity, cliWater]; … … 315 314 else 316 315 begin 317 BitBlt Canvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,318 SmallCityMapTemplate .Canvas, 332, 0);316 BitBltBitmap(SmallCityMap, 83, 0, 15, hSmallMap, 317 SmallCityMapTemplate, 332, 0); 319 318 ImageOp_CCC(SmallCityMap, 0, 0, wSmallMap, hSmallMap, Color0, 320 319 Color1, Color2); … … 369 368 begin 370 369 UnshareBitmap(ZoomCityMap); 371 BitBlt Canvas(ZoomCityMap.Canvas, 0, 0, wZoomMap, hZoomMap,372 Back .Canvas, xZoomMap, yZoomMap);370 BitBltBitmap(ZoomCityMap, 0, 0, wZoomMap, hZoomMap, 371 Back, xZoomMap, yZoomMap); 373 372 if SmallMapMode = smImprovements then begin 374 373 if ZoomArea < 3 then begin … … 527 526 RedTex.ColorTextShade := $0000FF; 528 527 529 BitBlt Canvas(Offscreen.Canvas, 0, 0, 640, 480, Back.Canvas, 0, 0);528 BitBltBitmap(Offscreen, 0, 0, 640, 480, Back, 0, 0); 530 529 531 530 Offscreen.Canvas.Font.Assign(UniFont[ftCaption]); … … 599 598 False, AllowChange and IsCityAlive and 600 599 (C.Status and csResourceWeightsMask = 0)); 601 BitBltCanvas(Offscreen.Canvas, xmArea + 102, 42, 90, 33, Back.Canvas, 602 xmArea + 102, 42); 600 BitBltBitmap(Offscreen, xmArea + 102, 42, 90, 33, Back, xmArea + 102, 42); 603 601 604 602 if IsCityAlive then … … 630 628 else 631 629 xGr := 141; 632 BitBlt Canvas(Offscreen.Canvas, xmArea - 192 + 5 + I * D, ymArea - 96 - 29,633 27, 30, HGrSystem.Mask .Canvas, xGr, 171, SRCAND); { shadow }630 BitBltBitmap(Offscreen, xmArea - 192 + 5 + I * D, ymArea - 96 - 29, 631 27, 30, HGrSystem.Mask, xGr, 171, SRCAND); { shadow } 634 632 Sprite(Offscreen, HGrSystem, xmArea - 192 + 4 + I * D, ymArea - 96 - 30, 27, 635 633 30, xGr, 171); … … 642 640 begin 643 641 xGr := 1 + 112; 644 BitBlt Canvas(Offscreen.Canvas, xmArea + 192 - 27 + 1 - I * D, 29 + 1, 27,645 30, HGrSystem.Mask .Canvas, xGr, 171, SRCAND); { shadow }642 BitBltBitmap(Offscreen, xmArea + 192 - 27 + 1 - I * D, 29 + 1, 27, 643 30, HGrSystem.Mask, xGr, 171, SRCAND); { shadow } 646 644 Sprite(Offscreen, HGrSystem, xmArea + 192 - 27 - I * D, 29, 27, 30, 647 645 xGr, 171); … … 788 786 789 787 // small map 790 BitBlt Canvas(Offscreen.Canvas, xSmallMap, ySmallMap, wSmallMap, hSmallMap,791 SmallCityMap .Canvas, 0, 0);788 BitBltBitmap(Offscreen, xSmallMap, ySmallMap, wSmallMap, hSmallMap, 789 SmallCityMap, 0, 0); 792 790 if SmallMapMode = smImprovements then 793 791 Frame(Offscreen.Canvas, xSmallMap + 48 * (ZoomArea div 3), … … 816 814 Sprite(Offscreen, HGrSystem, X + 6, Y - 5, 10, 10, 154, 126); 817 815 818 BitBltCanvas(Offscreen.Canvas, xZoomMap, yZoomMap, wZoomMap, hZoomMap, 819 ZoomCityMap.Canvas, 0, 0); 816 BitBltBitmap(Offscreen, xZoomMap, yZoomMap, wZoomMap, hZoomMap, ZoomCityMap, 0, 0); 820 817 821 818 for I := 0 to 5 do
Note:
See TracChangeset
for help on using the changeset viewer.