File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -152,7 +152,11 @@ function SDL_PIXELTYPE(X: cuint32): cuint32;
152152function SDL_PIXELORDER (X: cuint32): cuint32;
153153function SDL_PIXELLAYOUT (X: cuint32): cuint32;
154154function 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 *}
196200function SDL_ISPIXELFORMAT_FOURCC (format: Variant): Boolean;
You can’t perform that action at this time.
0 commit comments