Ignore:
Timestamp:
May 22, 2020, 11:52:44 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Drawing start screen ornament under Windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/highdpi/Packages/CevoComponents/UPixelPointer.pas

    r249 r251  
    99  TColor32 = type Cardinal;
    1010  TColor32Component = (ccBlue, ccGreen, ccRed, ccAlpha);
     11
     12  { TPixel32 }
     13
    1114  TPixel32 = packed record
     15    procedure SetRGB(Color: TColor32);
     16    function GetRGB: TColor32;
    1217    case Integer of
    1318      0: (B, G, R, A: Byte);
     
    4247
    4348implementation
     49
     50{ TPixel32 }
     51
     52procedure TPixel32.SetRGB(Color: TColor32);
     53begin
     54  B := Color and $ff;
     55  G := (Color shr 8) and $ff;
     56  R := (Color shr 16) and $ff;
     57end;
     58
     59function TPixel32.GetRGB: TColor32;
     60begin
     61  Result := ARGB and $ffffff;
     62end;
    4463
    4564{ TPixelPointer }
Note: See TracChangeset for help on using the changeset viewer.