mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r24992) -Codechange: [SDL] Make CreateMainSurface and PollEvent private methods instead of static functions.
This commit is contained in:
parent
97decad061
commit
afcb4a25b2
@ -216,7 +216,7 @@ static void GetAvailableVideoMode(uint *w, uint *h)
|
|||||||
#define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_CALL SDL_RWFromFile(file, "rb"), 1)
|
#define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_CALL SDL_RWFromFile(file, "rb"), 1)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static bool CreateMainSurface(uint w, uint h)
|
bool VideoDriver_SDL::CreateMainSurface(uint w, uint h)
|
||||||
{
|
{
|
||||||
SDL_Surface *newscreen, *icon;
|
SDL_Surface *newscreen, *icon;
|
||||||
char caption[50];
|
char caption[50];
|
||||||
@ -394,7 +394,7 @@ static uint32 ConvertSdlKeyIntoMy(SDL_keysym *sym)
|
|||||||
return (key << 16) + sym->unicode;
|
return (key << 16) + sym->unicode;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int PollEvent()
|
int VideoDriver_SDL::PollEvent()
|
||||||
{
|
{
|
||||||
SDL_Event ev;
|
SDL_Event ev;
|
||||||
|
|
||||||
|
@ -34,6 +34,9 @@ public:
|
|||||||
/* virtual */ bool ClaimMousePointer();
|
/* virtual */ bool ClaimMousePointer();
|
||||||
|
|
||||||
/* virtual */ const char *GetName() const { return "sdl"; }
|
/* virtual */ const char *GetName() const { return "sdl"; }
|
||||||
|
private:
|
||||||
|
int PollEvent();
|
||||||
|
bool CreateMainSurface(uint w, uint h);
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Factory for the SDL video driver. */
|
/** Factory for the SDL video driver. */
|
||||||
|
Loading…
Reference in New Issue
Block a user