Ignore:
Timestamp:
May 22, 2020, 9:09:55 PM (4 years ago)
Author:
chronos
Message:
  • Fixed: Incorrect drawing of start screen ornament.
File:
1 edited

Legend:

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

    r246 r249  
    3737
    3838  function PixelPointer(Bitmap: TDpiRasterImage; BaseX: Integer = 0; BaseY: Integer = 0): TPixelPointer; inline;
     39  function Color32ToColor(Color: TColor32): TColor;
     40  function ColorToColor32(Color: TColor): TColor32;
    3941
    4042
     
    8688end;
    8789
     90function Color32ToColor(Color: TColor32): TColor;
     91begin
     92  Result := ((Color shr 16) and $ff) or (Color and $00ff00) or
     93    ((Color and $ff) shl 16);
     94end;
     95
     96function ColorToColor32(Color: TColor): TColor32;
     97begin
     98  Result := $ff000000 or ((Color shr 16) and $ff) or (Color and $00ff00) or
     99    ((Color and $ff) shl 16);
     100end;
     101
    88102
    89103end.
Note: See TracChangeset for help on using the changeset viewer.