ref: 8d94c00a31f8ec7621fae55d534a716b867c535a
parent: de2df6f489d8c811a17b5610c3db94c6481c31d6
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Dec 31 11:32:17 EST 2021
sdl: add SDL_SetMainReady stub
--- a/include/npe/SDL2/SDL.h
+++ b/include/npe/SDL2/SDL.h
@@ -91,6 +91,7 @@
SDL_bool SDL_IsTextInputActive(void);
void SDL_StartTextInput(void);
void SDL_Delay(Uint32 ms);
+void SDL_SetMainReady(void);
int SDL_RenderReadPixels(SDL_Renderer *rend, SDL_Rect *rect, Uint32 fmt, void *pixels, int pitch);
int SDL_RenderCopy(SDL_Renderer *renderer, SDL_Texture *texture, SDL_Rect *srcrect, SDL_Rect *dstrect);
void SDL_RenderPresent(SDL_Renderer *renderer);
@@ -129,7 +130,7 @@
int SDL_GetCurrentDisplayMode(int displayIndex, SDL_DisplayMode *mode);
void SDL_ShowWindow(SDL_Window *w);
int SDL_RenderSetIntegerScale(SDL_Renderer *r, SDL_bool enable);
-
+
enum {
SDL_QUERY = -1,
SDL_DISABLE,
--- a/libnpe_sdl2/sdl2.c
+++ b/libnpe_sdl2/sdl2.c
@@ -1069,3 +1069,8 @@
USED(n);
return nil;
}
+
+void
+SDL_SetMainReady(void)
+{
+}