Changeset 209 for trunk/LocalPlayer


Ignore:
Timestamp:
May 9, 2020, 11:59:40 AM (5 years ago)
Author:
chronos
Message:
  • Modified: Code formatting.
Location:
trunk/LocalPlayer
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r206 r209  
    260260    Back.Canvas.FillRect(0, 0, ClientWidth, ClientHeight);
    261261
    262     bitbltCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight,
     262    BitBltCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight,
    263263      MainTexture.Image.Canvas, 0, 0);
    264264    ImageOp_B(Back, Template, 0, 0, 0, 0, ClientWidth, ClientHeight);
     
    291291  Color2 := Colors.Canvas.Pixels[clkAge0 + Age, cliHouse];
    292292  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,
    294294    SmallCityMapTemplate.Canvas, 83 * SizeClass, 0);
    295295  if IsPort then
    296296  begin
    297     bitbltCanvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,
     297    BitBltCanvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,
    298298      SmallCityMapTemplate.Canvas, 332 + 15, 0);
    299299    ImageOp_CCC(SmallCityMap, 0, 0, 83, hSmallMap, Color0, Color1, Color2);
     
    303303  else
    304304  begin
    305     bitbltCanvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,
     305    BitBltCanvas(SmallCityMap.Canvas, 83, 0, 15, hSmallMap,
    306306      SmallCityMapTemplate.Canvas, 332, 0);
    307307    ImageOp_CCC(SmallCityMap, 0, 0, wSmallMap, hSmallMap, Color0,
     
    311311  with SmallCityMap.Canvas do
    312312  begin
    313     brush.Color := ScreenTools.Colors.Canvas.Pixels[clkAge0 + Age, cliImp];
     313    Brush.Color := ScreenTools.Colors.Canvas.Pixels[clkAge0 + Age, cliImp];
    314314    for i := 0 to 29 do
    315315    begin
     
    359359  ZoomCityMap.Canvas.FillRect(0, 0, ZoomCityMap.Width, ZoomCityMap.Height);
    360360
    361   bitbltCanvas(ZoomCityMap.Canvas, 0, 0, wZoomMap, hZoomMap,
     361  BitBltCanvas(ZoomCityMap.Canvas, 0, 0, wZoomMap, hZoomMap,
    362362    Back.Canvas, xZoomMap, yZoomMap);
    363363  if Mode = mImp then begin
     
    542542  RedTex.clTextShade := $0000FF;
    543543
    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]);
    547547  RisedTextOut(offscreen.Canvas, 42, 7, Caption);
    548548  with offscreen.Canvas do
     
    557557    TextOut(8 + 14 - textwidth(s) div 2, 7, s);
    558558  end;
    559   offscreen.Canvas.Font.Assign(UniFont[ftSmall]);
     559  Offscreen.Canvas.Font.Assign(UniFont[ftSmall]);
    560560
    561561  if not IsCityAlive then
     
    613613    false, AllowChange and IsCityAlive and
    614614    (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,
    616616    xmArea + 102, 42);
    617617
     
    644644    else
    645645      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,
    647647      27, 30, GrExt[HGrSystem].Mask.Canvas, xGr, 171, SRCAND); { shadow }
    648648    Sprite(offscreen, HGrSystem, xmArea - 192 + 4 + i * d, ymArea - 96 - 30, 27,
     
    656656  begin
    657657    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,
    659659      30, GrExt[HGrSystem].Mask.Canvas, xGr, 171, SRCAND); { shadow }
    660660    Sprite(offscreen, HGrSystem, xmArea + 192 - 27 - i * d, 29, 27, 30,
     
    802802
    803803  // small map
    804   bitbltCanvas(offscreen.Canvas, xSmallMap, ySmallMap, wSmallMap, hSmallMap,
     804  BitBltCanvas(offscreen.Canvas, xSmallMap, ySmallMap, wSmallMap, hSmallMap,
    805805    SmallCityMap.Canvas, 0, 0);
    806806  if Mode = mImp then
     
    830830  Sprite(offscreen, HGrSystem, x + 6, y - 5, 10, 10, 154, 126);
    831831
    832   bitbltCanvas(offscreen.Canvas, xZoomMap, yZoomMap, wZoomMap, hZoomMap,
     832  BitBltCanvas(offscreen.Canvas, xZoomMap, yZoomMap, wZoomMap, hZoomMap,
    833833    ZoomCityMap.Canvas, 0, 0);
    834834
     
    16191619      with Canvas do
    16201620      begin
    1621         bitbltCanvas(Canvas, xView + 5, yView + 1, 64, 2, Back.Canvas,
     1621        BitBltCanvas(Canvas, xView + 5, yView + 1, 64, 2, Back.Canvas,
    16221622          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,
    16241624          xView + 5, yView + 3);
    1625         bitbltCanvas(Canvas, xView + 5 + 62, yView + 3, 2, 42,
     1625        BitBltCanvas(Canvas, xView + 5 + 62, yView + 3, 2, 42,
    16261626          Back.Canvas, xView + 5 + 62, yView + 3);
    16271627        ScreenTools.Frame(Canvas, xView + 9 - 1, yView + 5 - 1, xView + 9 + xSizeBig,
     
    16291629        RFrame(Canvas, xView + 9 - 2, yView + 5 - 2, xView + 9 + xSizeBig + 1,
    16301630          yView + 5 + ySizeBig + 1, $FFFFFF, $B0B0B0);
    1631         brush.Color := $000000;
     1631        Brush.Color := $000000;
    16321632        FillRect(Rect(xView + 9, yView + 5, xView + 1 + 72 - 8,
    16331633          yView + 5 + 40));
    1634         brush.style := bsClear;
     1634        Brush.style := bsClear;
    16351635      end
    16361636    else if BlinkTime = 6 then
     
    16431643      else if c.Project and cpImp = 0 then
    16441644      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);
    16471647        with Tribe[cOwner].ModelPicture[c.Project and cpIndex] do
    16481648          Sprite(Canvas, HGr, xView + 5, yView + 1, 64, 44, pix mod 10 * 65 + 1,
  • trunk/LocalPlayer/Draft.pas

    r189 r209  
    239239  // assemble background from 2 texture tiles
    240240  begin
    241     bitbltCanvas(Back.Canvas, 0, 0, ClientWidth, 64,
     241    BitBltCanvas(Back.Canvas, 0, 0, ClientWidth, 64,
    242242      MainTexture.Image.Canvas, (wMainTexture - ClientWidth) div 2,
    243243      hMainTexture - 64);
    244     bitbltCanvas(Back.Canvas, 0, 64, ClientWidth, ClientHeight - 64,
     244    BitBltCanvas(Back.Canvas, 0, 64, ClientWidth, ClientHeight - 64,
    245245      MainTexture.Image.Canvas, (wMainTexture - ClientWidth) div 2,
    246246      0);
    247247  end
    248248  else
    249     bitbltCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight,
     249    BitBltCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight,
    250250      MainTexture.Image.Canvas, (wMainTexture - ClientWidth) div 2,
    251251      (hMainTexture - ClientHeight) div 2);
     
    254254    Template.Height - 64 - Cut);
    255255
    256   bitbltCanvas(offscreen.Canvas, 0, 0, ClientWidth, ClientHeight,
     256  BitBltCanvas(offscreen.Canvas, 0, 0, ClientWidth, ClientHeight,
    257257    Back.Canvas, 0, 0);
    258258
  • trunk/LocalPlayer/UnitStat.pas

    r189 r209  
    445445          yImp + ySizeSmall, MainTexture.clBevelLight,
    446446          MainTexture.clBevelShade);
    447         bitbltCanvas(offscreen.Canvas, x, yImp, xSizeSmall, ySizeSmall,
     447        BitBltCanvas(offscreen.Canvas, x, yImp, xSizeSmall, ySizeSmall,
    448448          SmallImp.Canvas, j mod 7 * xSizeSmall,
    449449          (j + SystemIconLines * 7) div 7 * ySizeSmall);
     
    564564                    * (yyt * 3 + 1));
    565565              end;
    566           bitbltCanvas(offscreen.Canvas, xView, yView + 16, 64, 32,
     566          BitBltCanvas(offscreen.Canvas, xView, yView + 16, 64, 32,
    567567            Buffer.Canvas, 1, 0);
    568568
Note: See TracChangeset for help on using the changeset viewer.