Changeset - r20035:c4fe85f9251a
[Not reviewed]
master
0 2 0
matthijs - 12 years ago 2013-02-14 11:06:06
matthijs@openttd.org
(svn r24992) -Codechange: [SDL] Make CreateMainSurface and PollEvent private methods instead of static functions.
2 files changed with 5 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/video/sdl_v.cpp
Show inline comments
 
@@ -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;
 

	
src/video/sdl_v.h
Show inline comments
 
@@ -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. */
0 comments (0 inline, 0 general)