How to run SDL apps fullscreen on OLPC XO machine?

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

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.

That’s expected behavior if the requested mode is smaller than the smallest
available video mode.

See ya,
-Sam Lantinga, Lead Software Engineer, Blizzard Entertainment