Changeset 178 for branches/highdpi/LocalPlayer/Draft.pas
- Timestamp:
- Jun 23, 2019, 3:15:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/Draft.pas
r104 r178 5 5 6 6 uses 7 Protocol, ClientTools, Term, ScreenTools, BaseWin, 8 7 Protocol, ClientTools, Term, ScreenTools, BaseWin, UDpiControls, 9 8 LCLIntf, LCLType, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls, 10 9 ButtonA, … … 35 34 IncCap, DecCap: integer; 36 35 code: array [0 .. nFeature - 1] of integer; 37 Template, Back: T Bitmap;36 Template, Back: TDpiBitmap; 38 37 function IsFeatureInList(d, i: integer): boolean; 39 38 procedure SetDomain(d: integer); … … 86 85 end; 87 86 88 Back := T Bitmap.Create;87 Back := TDpiBitmap.Create; 89 88 Back.PixelFormat := pf24bit; 90 89 Back.SetSize(Width, Height); 91 90 Back.Canvas.FillRect(0, 0, Back.Width, Back.Height); 92 Template := T Bitmap.Create;91 Template := TDpiBitmap.Create; 93 92 Template.PixelFormat := pf24bit; 94 93 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'MiliRes.png', gfNoGamma);
Note:
See TracChangeset
for help on using the changeset viewer.