shithub: npe

Download patch

ref: 4390e4f277befd6de69812dd5ec12748eb5e6e44
parent: 492aef060aadc2c1e9cb3db1a7b12739bc16952e
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Fri Sep 17 11:41:47 EDT 2021

SDL2: remove SDL_GetWindowSurface stub

diff: cannot open a/SDL2//null: file does not exist: 'a/SDL2//null' diff: cannot open a/sys//null: file does not exist: 'a/sys//null'
--- a/include/npe/SDL2/SDL.h
+++ b/include/npe/SDL2/SDL.h
@@ -85,7 +85,6 @@
 void SDL_WarpMouseInWindow(SDL_Window *window, int x, int y);
 void SDL_RenderGetScale(SDL_Renderer *renderer, float *scaleX, float *scaleY);
 void SDL_GetWindowSize(SDL_Window *window, int *w, int *h);
-SDL_Surface *SDL_GetWindowSurface(SDL_Window *w);
 void SDL_GetWindowPosition(SDL_Window *window, int *x, int *y);
 Uint32 SDL_GetMouseState(int *x, int *y);
 SDL_bool SDL_IsTextInputActive(void);
--- a/libnpe_sdl2/sdl2.c
+++ b/libnpe_sdl2/sdl2.c
@@ -1043,10 +1043,3 @@
 SDL_ClearError(void)
 {
 }
-SDL_Surface *
-SDL_GetWindowSurface(SDL_Window *w)
-{
-	/* FIXME implement this */
-	USED(w);
-	return nil;
-}