Cleanup : rename Set_mode_SDL() to GFX2_Set_mode()
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user