Changeset 506 for trunk/MiniMap.pas


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

Legend:

Unmodified
Added
Removed
  • trunk/MiniMap.pas

    r504 r506  
    188188        if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    189189        (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + yy * MiniPixel.BytesPerLine)) then begin
    190           MiniPixel.Pixel^.B := ((cm shr 16) and $FF) * Brightness div 3;
    191           MiniPixel.Pixel^.G := ((cm shr 8) and $FF) * Brightness div 3;
    192           MiniPixel.Pixel^.R := ((cm shr 0) and $FF) * Brightness div 3;
     190          MiniPixel.PixelB := ((cm shr 16) and $FF) * Brightness div 3;
     191          MiniPixel.PixelG := ((cm shr 8) and $FF) * Brightness div 3;
     192          MiniPixel.PixelR := ((cm shr 0) and $FF) * Brightness div 3;
    193193        end;
    194194      end;
     
    232232              if (PByte(PrevMiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    233233              (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + yy * PrevMiniPixel.BytesPerLine)) then begin
    234                 PrevMiniPixel.Pixel^.B := cm shr 16;
    235                 PrevMiniPixel.Pixel^.G:= cm shr 8 and $FF;
    236                 PrevMiniPixel.Pixel^.R := cm and $FF;
     234                PrevMiniPixel.PixelB := cm shr 16;
     235                PrevMiniPixel.PixelG:= cm shr 8 and $FF;
     236                PrevMiniPixel.PixelR := cm and $FF;
    237237              end;
    238238            end;
     
    245245          if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    246246          (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + yy * MiniPixel.BytesPerLine)) then begin
    247             MiniPixel.Pixel^.B := (cm shr 16) and $ff;
    248             MiniPixel.Pixel^.G := (cm shr 8) and $ff;
    249             MiniPixel.Pixel^.R := (cm shr 0) and $ff;
     247            MiniPixel.PixelB := (cm shr 16) and $ff;
     248            MiniPixel.PixelG := (cm shr 8) and $ff;
     249            MiniPixel.PixelR := (cm shr 0) and $ff;
    250250          end;
    251251        end;
     
    317317              if (PByte(PrevMiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    318318              (PByte(PrevMiniPixel.Pixel) < (Bitmap.RawImage.Data + yy * PrevMiniPixel.BytesPerLine)) then begin
    319                 PrevMiniPixel.Pixel^.B := (cm shr 16) and $ff;
    320                 PrevMiniPixel.Pixel^.G := (cm shr 8) and $ff;
    321                 PrevMiniPixel.Pixel^.R := (cm shr 0) and $ff;
     319                PrevMiniPixel.PixelB := (cm shr 16) and $ff;
     320                PrevMiniPixel.PixelG := (cm shr 8) and $ff;
     321                PrevMiniPixel.PixelR := (cm shr 0) and $ff;
    322322              end;
    323323            end;
     
    342342          if (PByte(MiniPixel.Pixel) >= Bitmap.RawImage.Data) and
    343343          (PByte(MiniPixel.Pixel) < (Bitmap.RawImage.Data + yy * MiniPixel.BytesPerLine)) then begin
    344             MiniPixel.Pixel^.B := (cm shr 16) and $ff;
    345             MiniPixel.Pixel^.G := (cm shr 8) and $ff;
    346             MiniPixel.Pixel^.R := (cm shr 0) and $ff;
     344            MiniPixel.PixelB := (cm shr 16) and $ff;
     345            MiniPixel.PixelG := (cm shr 8) and $ff;
     346            MiniPixel.PixelR := (cm shr 0) and $ff;
    347347          end;
    348348        end;
Note: See TracChangeset for help on using the changeset viewer.