Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 28, 2006, 11:13:00 AM (18 years ago)
Author:
bensch
Message:

added a fixed positionBox, so that everything can be centered

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/gui/gl/glgui_handler.cc

    r9240 r9546  
    2828#include "debug.h"
    2929
    30 #include <cassert>
    31 
    3230
    3331/// TAKE THIS OUT OF HERE.
     
    9391  void GLGuiHandler::activate()
    9492  {
     93    this->_resolution = Vector2D(GraphicsEngine::getInstance()->getResolutionX(), GraphicsEngine::getInstance()->getResolutionY());
    9594    //EventHandler::getInstance()->pushState(ES_MENU);
    9695
     
    244243        if (this->_cursor != NULL)
    245244          this->_cursor->setMaxBorders(Vector2D(event.resize.w, event.resize.h));
    246         break;
     245        this->_resolution = Vector2D(event.resize.w, event.resize.h);
     246        break;
     247
    247248      case SDLK_TAB:
    248249        if (event.bPressed)
Note: See TracChangeset for help on using the changeset viewer.