Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2006, 4:00:04 PM (18 years ago)
Author:
bensch
Message:

yeah a fullscreen button :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/graphics/graphics_engine.cc

    r8316 r8475  
    397397  this->setResolution(this->resolutionX, this->resolutionY, this->bitsPerPixel);
    398398}
     399
     400void GraphicsEngine::toggleFullscreen()
     401{
     402  if (this->fullscreenFlag == SDL_FULLSCREEN)
     403    this->fullscreenFlag = 0;
     404  else
     405    this->fullscreenFlag = SDL_FULLSCREEN;
     406  this->setResolution(this->resolutionX, this->resolutionY, this->bitsPerPixel);
     407}
     408
    399409
    400410/**
Note: See TracChangeset for help on using the changeset viewer.