[SDL] How to run SDL apps fullscreen on OLPC XO machine?

David Bruce dbruce at tampabay.rr.com
Thu Jan 24 18:27:24 PST 2008


Hi,

I received an email from someone who wants to run tuxtype on the OLPC XO 
laptop - currently the fullscreen option gives a small active window centered 
in the screen, rather than occupying the whole area.  

The relevant code in tuxtype is:

	if (settings.fullscreen)
          video_flags = (SDL_FULLSCREEN | SDL_SWSURFACE | SDL_HWPALETTE);
	else
          video_flags = (SDL_SWSURFACE | SDL_HWPALETTE);
	
	screen = SDL_SetVideoMode(RES_X, RES_Y, BPP, video_flags);
	if (screen == NULL) {
          /* get out */
	}

Anyone have any experience with the OLPC XO - are these flags OK?

(I currently maintain tuxtype but I do not have access to an OLPC laptop).

Thanks for any suggestions

-- 
David Bruce


More information about the SDL mailing list