Ignore:
Timestamp:
Dec 25, 2023, 11:35:51 AM (11 months ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LocalPlayer/IsoEngine.pas

    r486 r506  
    266266        for Y := 0 to yyt * 3 - 1 do begin
    267267          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;
    269269        end;
    270270        if Border then Inc(TSpriteSize[I].Left);
     
    275275        for X := 0 to xxt * 2 - 1 do begin
    276276          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;
    278278        end;
    279279        if Border then Inc(TSpriteSize[I].Top);
     
    284284        for Y := 0 to yyt * 3 - 1 do begin
    285285          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;
    287287        end;
    288288        if Border then Dec(TSpriteSize[I].Right);
     
    293293        for X := 0 to xxt * 2 - 1 do begin
    294294          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;
    296296        end;
    297297        if Border then Dec(TSpriteSize[I].Bottom);
     
    14041404begin
    14051405  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;
    14091409    Line^.NextPixel;
    14101410  end;
Note: See TracChangeset for help on using the changeset viewer.