Skip to content

Commit 5425843

Browse files
Add comment for excluded macros
1 parent c554bef commit 5425843

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

units/sdlpixels.inc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,11 @@ function SDL_PIXELTYPE(X: cuint32): cuint32;
152152
function SDL_PIXELORDER(X: cuint32): cuint32;
153153
function SDL_PIXELLAYOUT(X: cuint32): cuint32;
154154
function SDL_BITSPERPIXEL(X: cuint32): cuint32;
155-
{
155+
156+
{
157+
SDL2-for-Pascal: Is it worth translating these macros as they seem to be used
158+
by SDL2 internally only?
159+
156160
#define SDL_BYTESPERPIXEL(X) \
157161
(SDL_ISPIXELFORMAT_FOURCC(X) ? \
158162
((((X) == SDL_PIXELFORMAT_YUY2) || \
@@ -190,7 +194,7 @@ function SDL_BITSPERPIXEL(X: cuint32): cuint32;
190194
(SDL_PIXELORDER(format) == SDL_ARRAYORDER_RGBA) || \
191195
(SDL_PIXELORDER(format) == SDL_ARRAYORDER_ABGR) || \
192196
(SDL_PIXELORDER(format) == SDL_ARRAYORDER_BGRA))))
193-
}
197+
}
194198

195199
{* The flag is set to 1 because 0x1? is not in the printable ASCII range *}
196200
function SDL_ISPIXELFORMAT_FOURCC(format: Variant): Boolean;

0 commit comments

Comments
 (0)