mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-13 09:55:42 +00:00
Fix casting error
This commit is contained in:
parent
c4158a0b5c
commit
efc19b67f1
1 changed files with 1 additions and 1 deletions
|
|
@ -112,7 +112,7 @@ SDL_AppResult SDL_AppInit(void **appstate, int argc, char *argv[])
|
|||
SDL_BLENDOPERATION_ADD /* A operation := + */
|
||||
);
|
||||
|
||||
surface = SDL_CreateSurface(RECT_SIZE, RECT_SIZE, SDL_PIXELFORMAT_RGBA8888);
|
||||
surface = SDL_CreateSurface((int)RECT_SIZE, (int)RECT_SIZE, SDL_PIXELFORMAT_RGBA8888);
|
||||
if (!surface) {
|
||||
SDL_Log("Couldn't create surface: %s", SDL_GetError());
|
||||
return SDL_APP_FAILURE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue