Changeset 506 for trunk/LocalPlayer/IsoEngine.pas
- Timestamp:
- Dec 25, 2023, 11:35:51 AM (11 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LocalPlayer/IsoEngine.pas
r486 r506 266 266 for Y := 0 to yyt * 3 - 1 do begin 267 267 MaskLine[Y].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + TSpriteSize[I].Left)); 268 if MaskLine[Y].Pixel ^.B = 0 then Border := False;268 if MaskLine[Y].PixelB = 0 then Border := False; 269 269 end; 270 270 if Border then Inc(TSpriteSize[I].Left); … … 275 275 for X := 0 to xxt * 2 - 1 do begin 276 276 MaskLine[TSpriteSize[I].Top].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + X)); 277 if MaskLine[TSpriteSize[I].Top].Pixel ^.B = 0 then Border := False;277 if MaskLine[TSpriteSize[I].Top].PixelB = 0 then Border := False; 278 278 end; 279 279 if Border then Inc(TSpriteSize[I].Top); … … 284 284 for Y := 0 to yyt * 3 - 1 do begin 285 285 MaskLine[Y].SetX(ScaleToNative(xSrc * (xxt * 2 + 1) + TSpriteSize[I].Right)); 286 if MaskLine[Y].Pixel ^.B = 0 then Border := False;286 if MaskLine[Y].PixelB = 0 then Border := False; 287 287 end; 288 288 if Border then Dec(TSpriteSize[I].Right); … … 293 293 for X := 0 to xxt * 2 - 1 do begin 294 294 MaskLine[TSpriteSize[I].Bottom - 1].SetX(ScaleToNative(1 + xSrc * (xxt * 2 + 1) + X)); 295 if MaskLine[TSpriteSize[I].Bottom - 1].Pixel ^.B = 0 then Border := False;295 if MaskLine[TSpriteSize[I].Bottom - 1].PixelB = 0 then Border := False; 296 296 end; 297 297 if Border then Dec(TSpriteSize[I].Bottom); … … 1404 1404 begin 1405 1405 for I := 0 to Length - 1 do begin 1406 Line^.Pixel ^.B := (Line^.Pixel^.B shr 1) and $7F;1407 Line^.Pixel ^.G := (Line^.Pixel^.G shr 1) and $7F;1408 Line^.Pixel ^.R := (Line^.Pixel^.R shr 1) and $7F;1406 Line^.PixelB := (Line^.PixelB shr 1) and $7F; 1407 Line^.PixelG := (Line^.PixelG shr 1) and $7F; 1408 Line^.PixelR := (Line^.PixelR shr 1) and $7F; 1409 1409 Line^.NextPixel; 1410 1410 end;
Note:
See TracChangeset
for help on using the changeset viewer.