Skip to content

Commit 73e3072

Browse files
Add comment for TSDL_Color
1 parent 1b00d25 commit 73e3072

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

units/sdlpixels.inc

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -450,6 +450,12 @@ const
450450
(cint(' ') shl 24);
451451

452452
type
453+
454+
{**
455+
* The bits of this structure can be directly reinterpreted as an integer-packed
456+
* color which uses the SDL_PIXELFORMAT_RGBA32 format (SDL_PIXELFORMAT_ABGR8888
457+
* on little-endian systems and SDL_PIXELFORMAT_RGBA8888 on big-endian systems).
458+
*}
453459
PPSDL_Color = ^PSDL_Color;
454460
PSDL_Color = ^TSDL_Color;
455461
TSDL_Color = record
@@ -475,7 +481,6 @@ type
475481
{**
476482
* Everything in the pixel format structure is read-only.
477483
*}
478-
479484
PPSDL_PixelFormat = ^PSDL_PixelFormat;
480485
PSDL_PixelFormat = ^TSDL_PixelFormat;
481486
TSDL_PixelFormat = record

0 commit comments

Comments
 (0)