Changeset 178 for branches/highdpi/LocalPlayer/CityScreen.pas
- Timestamp:
- Jun 23, 2019, 3:15:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/CityScreen.pas
r173 r178 8 8 LMessages, 9 9 {$ENDIF} 10 Protocol, ClientTools, Term, ScreenTools, IsoEngine, BaseWin, 10 Protocol, ClientTools, Term, ScreenTools, IsoEngine, BaseWin, UDpiControls, 11 11 LCLIntf, LCLType, Messages, SysUtils, Classes, Graphics, Controls, Forms, ExtCtrls, 12 12 ButtonA, ButtonC, Area, GraphType; … … 74 74 AreaMap: TIsoMap; 75 75 CityMapTemplate, SmallCityMapTemplate, Back, SmallCityMap, ZoomCityMap, 76 Template: T Bitmap;76 Template: TDpiBitmap; 77 77 IsPort, ProdHint, AllowChange: boolean; 78 78 procedure InitSmallCityMap; … … 90 90 91 91 uses 92 Select, Messg, MessgEx, Help, Tribes, Directories, Math , PixelPointer, Sound;92 Select, Messg, MessgEx, Help, Tribes, Directories, Math; 93 93 94 94 {$R *.lfm} … … 210 210 end; 211 211 212 Back := T Bitmap.Create;212 Back := TDpiBitmap.Create; 213 213 Back.PixelFormat := pf24bit; 214 214 Back.SetSize(Width, Height); 215 215 Back.Canvas.FillRect(0, 0, Back.Width, Back.Height); 216 Template := T Bitmap.Create;216 Template := TDpiBitmap.Create; 217 217 Template.PixelFormat := pf24bit; 218 218 LoadGraphicFile(Template, HomeDir + 'Graphics' + DirectorySeparator + 'City.png', gfNoGamma); 219 CityMapTemplate := T Bitmap.Create;219 CityMapTemplate := TDpiBitmap.Create; 220 220 CityMapTemplate.PixelFormat := pf24bit; 221 221 LoadGraphicFile(CityMapTemplate, HomeDir + 'Graphics' + DirectorySeparator + 'BigCityMap.png', gfNoGamma); 222 SmallCityMapTemplate := T Bitmap.Create;222 SmallCityMapTemplate := TDpiBitmap.Create; 223 223 SmallCityMapTemplate.PixelFormat := pf24bit; 224 224 LoadGraphicFile(SmallCityMapTemplate, HomeDir + 'Graphics' + DirectorySeparator + 'SmallCityMap.png', 225 225 gfNoGamma); 226 SmallCityMap := T Bitmap.Create;226 SmallCityMap := TDpiBitmap.Create; 227 227 SmallCityMap.PixelFormat := pf24bit; 228 228 SmallCityMap.SetSize(98, 74); 229 229 SmallCityMap.Canvas.FillRect(0, 0, SmallCityMap.Width, SmallCityMap.Height); 230 ZoomCityMap := T Bitmap.Create;230 ZoomCityMap := TDpiBitmap.Create; 231 231 ZoomCityMap.PixelFormat := pf24bit; 232 232 ZoomCityMap.SetSize(228, 124);
Note:
See TracChangeset
for help on using the changeset viewer.