Ignore:
Timestamp:
Feb 24, 2024, 8:04:26 PM (9 months ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r471 r530  
    275275
    276276    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);
    279278    ImageOp_B(Back, Template, 0, 0, 0, 0, Width, Height);
    280279  end;
     
    303302  Color2 := Colors.Canvas.Pixels[clkAge0 + Age, cliHouse];
    304303  SmallCityMap.Canvas.FillRect(0, 0, SmallCityMap.Width, SmallCityMap.Height);
    305   BitBltCanvas(SmallCityMap.Canvas, 0, 0, 83, hSmallMap,
    306     SmallCityMapTemplate.Canvas, 83 * SizeClass, 0);
     304  BitBltBitmap(SmallCityMap, 0, 0, 83, hSmallMap,
     305    SmallCityMapTemplate, 83 * SizeClass, 0);
    307306  if IsPort then
    308307  begin
    309     BitBltCanvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,
    310       SmallCityMapTemplate.Canvas, 332 + 15, 0);
     308    BitBltBitmap(SmallCityMap, 83, 0, 15, hSmallMap,
     309      SmallCityMapTemplate, 332 + 15, 0);
    311310    ImageOp_CCC(SmallCityMap, 0, 0, 83, hSmallMap, Color0, Color1, Color2);
    312311    Color2 := Colors.Canvas.Pixels[clkCity, cliWater];
     
    315314  else
    316315  begin
    317     BitBltCanvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,
    318       SmallCityMapTemplate.Canvas, 332, 0);
     316    BitBltBitmap(SmallCityMap, 83, 0, 15, hSmallMap,
     317      SmallCityMapTemplate, 332, 0);
    319318    ImageOp_CCC(SmallCityMap, 0, 0, wSmallMap, hSmallMap, Color0,
    320319      Color1, Color2);
     
    369368begin
    370369  UnshareBitmap(ZoomCityMap);
    371   BitBltCanvas(ZoomCityMap.Canvas, 0, 0, wZoomMap, hZoomMap,
    372     Back.Canvas, xZoomMap, yZoomMap);
     370  BitBltBitmap(ZoomCityMap, 0, 0, wZoomMap, hZoomMap,
     371    Back, xZoomMap, yZoomMap);
    373372  if SmallMapMode = smImprovements then begin
    374373    if ZoomArea < 3 then begin
     
    527526  RedTex.ColorTextShade := $0000FF;
    528527
    529   BitBltCanvas(Offscreen.Canvas, 0, 0, 640, 480, Back.Canvas, 0, 0);
     528  BitBltBitmap(Offscreen, 0, 0, 640, 480, Back, 0, 0);
    530529
    531530  Offscreen.Canvas.Font.Assign(UniFont[ftCaption]);
     
    599598      False, AllowChange and IsCityAlive and
    600599      (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);
    603601
    604602    if IsCityAlive then
     
    630628    else
    631629      xGr := 141;
    632     BitBltCanvas(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 }
    634632    Sprite(Offscreen, HGrSystem, xmArea - 192 + 4 + I * D, ymArea - 96 - 30, 27,
    635633      30, xGr, 171);
     
    642640  begin
    643641    xGr := 1 + 112;
    644     BitBltCanvas(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 }
    646644    Sprite(Offscreen, HGrSystem, xmArea + 192 - 27 - I * D, 29, 27, 30,
    647645      xGr, 171);
     
    788786
    789787  // small map
    790   BitBltCanvas(Offscreen.Canvas, xSmallMap, ySmallMap, wSmallMap, hSmallMap,
    791     SmallCityMap.Canvas, 0, 0);
     788  BitBltBitmap(Offscreen, xSmallMap, ySmallMap, wSmallMap, hSmallMap,
     789    SmallCityMap, 0, 0);
    792790  if SmallMapMode = smImprovements then
    793791    Frame(Offscreen.Canvas, xSmallMap + 48 * (ZoomArea div 3),
     
    816814  Sprite(Offscreen, HGrSystem, X + 6, Y - 5, 10, 10, 154, 126);
    817815
    818   BitBltCanvas(Offscreen.Canvas, xZoomMap, yZoomMap, wZoomMap, hZoomMap,
    819     ZoomCityMap.Canvas, 0, 0);
     816  BitBltBitmap(Offscreen, xZoomMap, yZoomMap, wZoomMap, hZoomMap, ZoomCityMap, 0, 0);
    820817
    821818  for I := 0 to 5 do
Note: See TracChangeset for help on using the changeset viewer.