Cleanup : rename Set_mode_SDL() to GFX2_Set_mode()

This commit is contained in:
Thomas Bernard 2018-06-25 09:46:30 +02:00
parent af25970c09
commit c6fdb6064c
3 changed files with 2 additions and 8 deletions

View File

@ -400,11 +400,7 @@ try_again:
if (screen_changed) if (screen_changed)
{ {
#if defined(USE_SDL) || defined(USE_SDL2)
Set_mode_SDL(&width, &height,fullscreen);
#else
GFX2_Set_mode(&width, &height, fullscreen); GFX2_Set_mode(&width, &height, fullscreen);
#endif
} }
if (screen_changed || pixels_changed) if (screen_changed || pixels_changed)

View File

@ -114,7 +114,7 @@ void Screen_FillRect(int x, int y, int w, int h, byte color)
} }
/// Sets the new screen/window dimensions. /// 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 SDL_Cursor* cur = NULL;
static byte cursorData = 0; static byte cursorData = 0;

View File

@ -33,8 +33,6 @@
#include "struct.h" #include "struct.h"
#include "global.h" #include "global.h"
void Set_mode_SDL(int *,int *,int);
GFX2_GLOBAL SDL_Rect ** List_SDL_video_modes; 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 /// Convert a SDL Palette to a grafx2 palette
void Get_SDL_Palette(const SDL_Palette * sdl_palette, T_Palette palette); void Get_SDL_Palette(const SDL_Palette * sdl_palette, T_Palette palette);
#endif // SDLSCREEN_H_INCLUDED #endif // SDLSCREEN_H_INCLUDED