Changeset 308 for branches/highdpi/Start.pas
- Timestamp:
- Mar 9, 2021, 9:13:07 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/highdpi/Start.pas
r303 r308 380 380 MiniPixel: TPixelPointer; 381 381 PrevMiniPixel: TPixelPointer; 382 TerrainTile: Cardinal; 382 383 begin 383 384 OwnColor := GrExt[HGrSystem].Data.Canvas.Pixels[95, 67]; … … 415 416 cm := OwnColor 416 417 else cm := EnemyColor 417 else 418 cm := Colors[Tile and fTerrain, i]; 418 else begin 419 TerrainTile := Tile and fTerrain; 420 if TerrainTile > 11 then TerrainTile := 0; 421 cm := Colors[TerrainTile, i]; 422 end; 419 423 MiniPixel.Pixel^.B := (cm shr 16) and $ff; 420 424 MiniPixel.Pixel^.G := (cm shr 8) and $ff;
Note:
See TracChangeset
for help on using the changeset viewer.