Changeset 178 for branches/highdpi/LocalPlayer/UnitStat.pas
- Timestamp:
- Jun 23, 2019, 3:15:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/UnitStat.pas
r73 r178 5 5 6 6 uses 7 Protocol, ClientTools, Term, ScreenTools, BaseWin, 7 Protocol, ClientTools, Term, ScreenTools, BaseWin, UDpiControls, 8 8 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, 9 9 ButtonB, ButtonC; … … 41 41 Kind: (dkOwnModel, dkOwnUnit, dkEnemyModel, dkEnemyUnit, dkEnemyCityDefense, 42 42 dkEnemyCity); 43 Back, Template: T Bitmap;43 Back, Template: TDpiBitmap; 44 44 procedure OffscreenPaint; override; 45 45 end; … … 77 77 InitButtons(); 78 78 79 Back := T Bitmap.Create;79 Back := TDpiBitmap.Create; 80 80 Back.PixelFormat := pf24bit; 81 81 Back.SetSize(5 * wCommon, hMax); 82 82 Back.Canvas.FillRect(0, 0, Back.Width,Back.Height); 83 Template := T Bitmap.Create;83 Template := TDpiBitmap.Create; 84 84 Template.PixelFormat := pf24bit; 85 85 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'Unit.png', gfNoGamma); … … 300 300 end; 301 301 302 procedure FeatureBar(dst: T Bitmap; x, y: integer; const mi: TModelInfo;302 procedure FeatureBar(dst: TDpiBitmap; x, y: integer; const mi: TModelInfo; 303 303 const T: TTexture); 304 304 var … … 367 367 end; { featurebar } 368 368 369 procedure NumberBarS(dst: T Bitmap; x, y: integer; Cap, s: string;369 procedure NumberBarS(dst: TDpiBitmap; x, y: integer; Cap, s: string; 370 370 const T: TTexture); 371 371 begin
Note:
See TracChangeset
for help on using the changeset viewer.