Changeset - r34:fdf62504c031
[Not reviewed]
master
0 1 0
darkvater - 20 years ago 2004-08-12 22:37:41
darkvater@openttd.org
(svn r35) -Fix Change SDL_HWSURFACE back to SDL_SWSURFACE (Diablo-3D); better performance
1 file changed with 1 insertions and 1 deletions:
sdl.c
1
1
0 comments (0 inline, 0 general)
sdl.c
Show inline comments
 
@@ -292,13 +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);
 

	
 
	newscreen = SDL_CALL SDL_SetVideoMode(w, h, 8, SDL_HWSURFACE + SDL_HWPALETTE + (_fullscreen?SDL_FULLSCREEN:SDL_RESIZABLE));
 
	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)