Changeset 178 for branches/highdpi/LocalPlayer/IsoEngine.pas
- Timestamp:
- Jun 23, 2019, 3:15:29 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/LocalPlayer/IsoEngine.pas
r170 r178 5 5 6 6 uses 7 Protocol, ClientTools, ScreenTools, Tribes, 7 Protocol, ClientTools, ScreenTools, Tribes, UDpiControls, 8 8 {$IFNDEF SCR}Term, {$ENDIF} 9 LCLIntf, LCLType, SysUtils, Classes, Graphics , PixelPointer;9 LCLIntf, LCLType, SysUtils, Classes, Graphics; 10 10 11 11 type … … 16 16 TIsoMap = class 17 17 constructor Create; 18 procedure SetOutput(Output: T Bitmap);18 procedure SetOutput(Output: TDpiBitmap); 19 19 procedure SetPaintBounds(Left, Top, Right, Bottom: integer); 20 20 procedure Paint(x, y, Loc, nx, ny, CityLoc, CityOwner: integer; … … 24 24 procedure PaintCity(x, y: integer; const CityInfo: TCityInfo; 25 25 accessory: boolean = true); 26 procedure BitBlt(Src: T Bitmap; x, y, Width, Height, xSrc, ySrc,26 procedure BitBlt(Src: TDpiBitmap; x, y, Width, Height, xSrc, ySrc, 27 27 Rop: integer); 28 28 … … 37 37 procedure ShadeOutside(x0, y0, x1, y1, xm, ym: integer); 38 38 protected 39 FOutput: T Bitmap;39 FOutput: TDpiBitmap; 40 40 FLeft, FTop, FRight, FBottom, RealTop, RealBottom, AttLoc, DefLoc, 41 41 DefHealth, FAdviceLoc: integer; … … 113 113 BordersOK: integer; 114 114 OnInitEnemyModel: TInitEnemyModelEvent; 115 LandPatch, OceanPatch, Borders: T Bitmap;115 LandPatch, OceanPatch, Borders: TDpiBitmap; 116 116 TSpriteSize: array [0 .. TerrainIconLines * 9 - 1] of TRect; 117 117 DebugMap: ^TTileList; … … 136 136 var 137 137 i, x, y, xSrc, ySrc, HGrTerrainNew, HGrCitiesNew, age, size: integer; 138 LandMore, OceanMore, DitherMask, Mask24: T Bitmap;138 LandMore, OceanMore, DitherMask, Mask24: TDpiBitmap; 139 139 MaskLine: array [0 .. 32 * 3 - 1] of TPixelPointer; // 32 = assumed maximum for yyt 140 140 Border: boolean; … … 165 165 if LandPatch <> nil then 166 166 LandPatch.Free; 167 LandPatch := T Bitmap.Create;167 LandPatch := TDpiBitmap.Create; 168 168 LandPatch.PixelFormat := pf24bit; 169 169 LandPatch.Canvas.Brush.Color := 0; … … 172 172 if OceanPatch <> nil then 173 173 OceanPatch.Free; 174 OceanPatch := T Bitmap.Create;174 OceanPatch := TDpiBitmap.Create; 175 175 OceanPatch.PixelFormat := pf24bit; 176 176 OceanPatch.Canvas.Brush.Color := 0; 177 177 OceanPatch.SetSize(xxt * 8, yyt * 4); 178 178 OceanPatch.Canvas.FillRect(0, 0, OceanPatch.Width, OceanPatch.Height); 179 LandMore := T Bitmap.Create;179 LandMore := TDpiBitmap.Create; 180 180 LandMore.PixelFormat := pf24bit; 181 181 LandMore.Canvas.Brush.Color := 0; 182 182 LandMore.SetSize(xxt * 18, yyt * 9); 183 183 LandMore.Canvas.FillRect(0, 0, LandMore.Width, LandMore.Height); 184 OceanMore := T Bitmap.Create;184 OceanMore := TDpiBitmap.Create; 185 185 OceanMore.PixelFormat := pf24bit; 186 186 OceanMore.Canvas.Brush.Color := 0; 187 187 OceanMore.SetSize(xxt * 8, yyt * 4); 188 188 OceanMore.Canvas.FillRect(0, 0, OceanMore.Width, OceanMore.Height); 189 DitherMask := T Bitmap.Create;189 DitherMask := TDpiBitmap.Create; 190 190 DitherMask.PixelFormat := pf24bit; 191 191 DitherMask.SetSize(xxt * 2, yyt * 2); … … 366 366 367 367 // reduce size of terrain icons 368 Mask24 := T Bitmap.Create;368 Mask24 := TDpiBitmap.Create; 369 369 Mask24.Assign(GrExt[HGrTerrain].Mask); 370 370 Mask24.PixelFormat := pf24bit; … … 420 420 if Borders <> nil then 421 421 Borders.Free; 422 Borders := T Bitmap.Create;422 Borders := TDpiBitmap.Create; 423 423 Borders.PixelFormat := pf24bit; 424 424 Borders.SetSize(xxt * 2,(yyt * 2) * nPl); … … 452 452 end; 453 453 454 procedure TIsoMap.SetOutput(Output: T Bitmap);454 procedure TIsoMap.SetOutput(Output: TDpiBitmap); 455 455 begin 456 456 FOutput := Output; … … 499 499 end; 500 500 501 procedure TIsoMap.BitBlt(Src: T Bitmap; x, y, Width, Height, xSrc, ySrc,501 procedure TIsoMap.BitBlt(Src: TDpiBitmap; x, y, Width, Height, xSrc, ySrc, 502 502 Rop: integer); 503 503 begin
Note:
See TracChangeset
for help on using the changeset viewer.