From c6fdb6064c46fed53c78336885436926f76b2fb8 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Mon, 25 Jun 2018 09:46:30 +0200 Subject: [PATCH] Cleanup : rename Set_mode_SDL() to GFX2_Set_mode() --- src/graph.c | 4 ---- src/sdlscreen.c | 2 +- src/sdlscreen.h | 4 +--- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/graph.c b/src/graph.c index 2f07d496..d7032215 100644 --- a/src/graph.c +++ b/src/graph.c @@ -400,11 +400,7 @@ try_again: if (screen_changed) { -#if defined(USE_SDL) || defined(USE_SDL2) - Set_mode_SDL(&width, &height,fullscreen); -#else GFX2_Set_mode(&width, &height, fullscreen); -#endif } if (screen_changed || pixels_changed) diff --git a/src/sdlscreen.c b/src/sdlscreen.c index 8d659f72..209f40c1 100644 --- a/src/sdlscreen.c +++ b/src/sdlscreen.c @@ -114,7 +114,7 @@ void Screen_FillRect(int x, int y, int w, int h, byte color) } /// Sets the new screen/window dimensions. -void Set_mode_SDL(int *width, int *height, int fullscreen) +void GFX2_Set_mode(int *width, int *height, int fullscreen) { static SDL_Cursor* cur = NULL; static byte cursorData = 0; diff --git a/src/sdlscreen.h b/src/sdlscreen.h index 6c810e10..1938c383 100644 --- a/src/sdlscreen.h +++ b/src/sdlscreen.h @@ -33,8 +33,6 @@ #include "struct.h" #include "global.h" -void Set_mode_SDL(int *,int *,int); - GFX2_GLOBAL SDL_Rect ** List_SDL_video_modes; /// @@ -54,4 +52,4 @@ void Set_SDL_pixel_8(SDL_Surface *bmp, int x, int y, byte color); /// Convert a SDL Palette to a grafx2 palette void Get_SDL_Palette(const SDL_Palette * sdl_palette, T_Palette palette); -#endif // SDLSCREEN_H_INCLUDED \ No newline at end of file +#endif // SDLSCREEN_H_INCLUDED