Ignore:
Timestamp:
Dec 3, 2023, 8:33:43 PM (12 months ago)
Author:
chronos
Message:
  • Fixed: City screen size sometimes not correctly loaded.
  • Modified: Code cleanup.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/CityScreen.pas

    r468 r469  
    88  Protocol, ClientTools, ScreenTools, IsoEngine, BaseWin, LCLIntf, LCLType,
    99  Messages, SysUtils, Classes, ButtonA, ButtonC, Area, GraphType, Texture,
    10   System.UITypes,
    1110  {$IFDEF DPI}Dpi.Graphics, Dpi.Controls, Dpi.Forms, Dpi.ExtCtrls{$ELSE}
    1211  Graphics, Controls, Forms, ExtCtrls{$ENDIF};
     
    195194procedure TCityDlg.FormCreate(Sender: TObject);
    196195begin
    197   inherited;
    198196  RedTex := TTexture.Create;
    199197  BarTex := TTexture.Create;
     
    277275
    278276    UnshareBitmap(Back);
    279     BitBltCanvas(Back.Canvas, 0, 0, ClientWidth, ClientHeight,
     277    BitBltCanvas(Back.Canvas, 0, 0, Width, Height,
    280278      MainTexture.Image.Canvas, 0, 0);
    281     ImageOp_B(Back, Template, 0, 0, 0, 0, ClientWidth, ClientHeight);
     279    ImageOp_B(Back, Template, 0, 0, 0, 0, Width, Height);
    282280  end;
    283281end;
     
    364362      end;
    365363    end;
    366     Brush.style := TBrushStyle.bsClear;
     364    Brush.Style := TBrushStyle.bsClear;
    367365  end;
    368366end;
     
    539537    Brush.Color := $FFFFFF;
    540538    FillRect(Rect(8, 7, 36, 32));
    541     Brush.style := TBrushStyle.bsClear;
     539    Brush.Style := TBrushStyle.bsClear;
    542540    Font.Color := $000000;
    543541    S := IntToStr(C.Size);
Note: See TracChangeset for help on using the changeset viewer.