Petar Popovic

Results 8 issues of Petar Popovic

I don't see SDL_rect.h using anything from the two headers. And files which include SDL_rect.h(which are SDL_surface.h, SDL_video.h and SDL_render.h) already include SDL_pixels.h and/or SDL_rwops.h, if they use them. Building...

`SDLK_a-SDLK_z` -> `SDLK_A-SDLK_Z` (uppercase) `SDL_SCANCODE_NUMLOCKCLEAR` -> `SDL_SCANCODE_KP_NUMLOCK` (adding _KP, removing CLEAR) `SDL_SCANCODE_AGAIN` -> `SDL_SCANCODE_REDO` RIGHT/LEFT vs L/R: ``` SDL_SCANCODE_LCTRL SDL_SCANCODE_LSHIFT SDL_SCANCODE_LALT SDL_SCANCODE_LGUI SDL_SCANCODE_RCTRL SDL_SCANCODE_RSHIFT SDL_SCANCODE_RALT SDL_SCANCODE_RGUI SDL_SCANCODE_LEFTBRACKET -> SDL_SCANCODE_LBRACKET SDL_SCANCODE_RIGHTBRACKET...

Right now the function `SDL_GetPrefPath(org, app)` always creates the directories org/app, if they don't exist. It would be useful to have a way to just check, if there are existing...

Removed the `\file` tag from all files except from `SDL.h`. Tried to remove it from `SDL.h` as well like this: ```diff diff --git a/include/SDL3/SDL.h b/include/SDL3/SDL.h index e9f1d6bee..1c34c5c42 100644 --- a/include/SDL3/SDL.h...

I tried compiling SDL with Emscripten following the `README-emscripten.md` documentation. Building SDL and examples work. But building the tests fails: ```c [ 50%] Building C object test/CMakeFiles/checkkeys.dir/checkkeys.c.o /path/to/SDL-git/test/checkkeys.c:237:17: warning: incompatible...

Since the latest ffmpeg release (version 7.1), there are warnings when compiling SDL tests: gcc warnings ```shell [ 59%] Building C object test/CMakeFiles/testffmpeg.dir/testffmpeg_vulkan.c.o /path/to/SDL-git/test/testffmpeg_vulkan.c: In function ‘SetupVulkanDeviceContextData’: /path/to/SDL-git/test/testffmpeg_vulkan.c:693:5: warning: ‘queue_family_index’...

Currently `SDL_GetMouseNameForID()` doesn't set an error message, when passing an invalid mouse ID: ```c if(!SDL_GetMouseNameForID(99)) { printf("Error \"%s\"", SDL_GetError()); } ``` Prints ```c "" ``` This commits sets an error...

I noticed that sometimes `SDL_CreateDirectory()` sets an error message even if it returned true and directories were created. This happens when creating a not yet existing directory tree. Here is...