Changeset 9656 in orxonox.OLD for trunk/src/lib/gui/gl/glgui_handler.cc
- Timestamp:
- Aug 4, 2006, 11:01:28 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl/glgui_handler.cc
r9240 r9656 28 28 #include "debug.h" 29 29 30 #include <cassert>31 32 30 33 31 /// TAKE THIS OUT OF HERE. … … 46 44 this->setName("GLGuiHandler"); 47 45 46 this->_resolution = Vector2D(GraphicsEngine::getInstance()->getResolutionX(), GraphicsEngine::getInstance()->getResolutionY()); 48 47 49 48 EventHandler::getInstance()->withUNICODE(ES_MENU, true ); … … 52 51 for (unsigned int i = 0; i < EV_NUMBER; i++) 53 52 { 54 this->subscribeEvent(ES_ALL, i); 53 this->subscribeEvent(ES_GAME, i); 54 this->subscribeEvent(ES_GAME_MENU, i); 55 this->subscribeEvent(ES_MENU, i); 55 56 } 56 57 } … … 88 89 this->_cursor = NULL; 89 90 } 91 } 92 93 const Vector2D& GLGuiHandler::resolution() 94 { 95 if (this->_resolution == Vector2D::nullVector()) 96 this->_resolution = Vector2D(GraphicsEngine::getInstance()->getResolutionX(), GraphicsEngine::getInstance()->getResolutionY()); 97 return _resolution; 90 98 } 91 99 … … 244 252 if (this->_cursor != NULL) 245 253 this->_cursor->setMaxBorders(Vector2D(event.resize.w, event.resize.h)); 246 break; 254 this->_resolution = Vector2D(event.resize.w, event.resize.h); 255 break; 256 247 257 case SDLK_TAB: 248 258 if (event.bPressed)
Note: See TracChangeset
for help on using the changeset viewer.