# HG changeset patch # User matthijs # Date 2013-02-14 11:06:06 # Node ID c4fe85f9251a3b270b6882b23480fdf9919e9902 # Parent 6a6104b5385bbaa42e4d3eeff7c45db508e5dadd (svn r24992) -Codechange: [SDL] Make CreateMainSurface and PollEvent private methods instead of static functions. diff --git a/src/video/sdl_v.cpp b/src/video/sdl_v.cpp --- a/src/video/sdl_v.cpp +++ b/src/video/sdl_v.cpp @@ -216,7 +216,7 @@ static void GetAvailableVideoMode(uint * #define SDL_LoadBMP(file) SDL_LoadBMP_RW(SDL_CALL SDL_RWFromFile(file, "rb"), 1) #endif -static bool CreateMainSurface(uint w, uint h) +bool VideoDriver_SDL::CreateMainSurface(uint w, uint h) { SDL_Surface *newscreen, *icon; char caption[50]; @@ -394,7 +394,7 @@ static uint32 ConvertSdlKeyIntoMy(SDL_ke return (key << 16) + sym->unicode; } -static int PollEvent() +int VideoDriver_SDL::PollEvent() { SDL_Event ev; diff --git a/src/video/sdl_v.h b/src/video/sdl_v.h --- a/src/video/sdl_v.h +++ b/src/video/sdl_v.h @@ -34,6 +34,9 @@ public: /* virtual */ bool ClaimMousePointer(); /* virtual */ const char *GetName() const { return "sdl"; } +private: + int PollEvent(); + bool CreateMainSurface(uint w, uint h); }; /** Factory for the SDL video driver. */