Changeset 303 for branches/highdpi/LocalPlayer/UnitStat.pas
- Timestamp:
- Mar 9, 2021, 9:19:49 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/UnitStat.pas
r210 r303 83 83 Template := TDpiBitmap.Create; 84 84 Template.PixelFormat := pf24bit; 85 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'Unit.png', gfNoGamma); 85 LoadGraphicFile(Template, GetGraphicsDir + DirectorySeparator + 'Unit.png', 86 [gfNoGamma]); 86 87 end; 87 88 88 89 procedure TUnitStatDlg.FormDestroy(Sender: TObject); 89 90 begin 90 Template.Free;91 Back.Free;91 FreeAndNil(Template); 92 FreeAndNil(Back); 92 93 end; 93 94 … … 276 277 procedure TUnitStatDlg.CloseBtnClick(Sender: TObject); 277 278 begin 278 Close 279 Close; 279 280 end; 280 281 … … 363 364 inc(dx, 15) 364 365 end; 365 end 366 end 366 end; 367 end; 367 368 end; { featurebar } 368 369
Note:
See TracChangeset
for help on using the changeset viewer.