Changeset - r36:5fa4dd10a7b1
[Not reviewed]
master
0 1 0
darkvater - 20 years ago 2004-08-12 22:43:11
darkvater@openttd.org
(svn r37) Do not change to HWSURFACE since it's not working!
1 file changed with 1 insertions and 0 deletions:
sdl.c
1
0 comments (0 inline, 0 general)
sdl.c
Show inline comments
 
@@ -292,12 +292,13 @@ static bool CreateMainSurface(int w, int
 
	sizechange = (_screen.width != w || _screen.height != h);
 
	_screen.pitch = _screen.width = w;
 
	_screen.height = h;
 

	
 
	DEBUG(misc, 0) ("sdl: using mode %dx%d", w, h);
 

	
 
	// DO NOT CHANGE TO HWSURFACE, IT DOES NOT WORK
 
	newscreen = SDL_CALL SDL_SetVideoMode(w, h, 8, SDL_SWSURFACE + SDL_HWPALETTE + (_fullscreen?SDL_FULLSCREEN:SDL_RESIZABLE));
 
	if(newscreen == NULL)
 
		return false;
 

	
 
	_sdl_screen = newscreen;
 
	InitPalette();
0 comments (0 inline, 0 general)