Changeset 9554 in orxonox.OLD for branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.cc
- Timestamp:
- Jul 28, 2006, 12:07:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/gui/gl/glgui_fixedposition_box.cc
r9549 r9554 28 28 GLGuiFixedpositionBox::GLGuiFixedpositionBox (OrxGui::Position position, OrxGui::Orientation orientation) 29 29 : GLGuiBox(orientation) 30 {} 30 { 31 this->subscribeEvent(ES_ALL, EV_VIDEO_RESIZE); 32 } 31 33 32 34 … … 45 47 { 46 48 case OrxGui::Center: 47 this->setAbsCoor2D(GLGuiHandler::getInstance()->resolution() - this->getSize2D() / 2.0);49 this->setAbsCoor2D(GLGuiHandler::getInstance()->resolution()/2.0 - this->getSize2D() / 2.0); 48 50 break; 49 51 default: … … 56 58 } 57 59 60 void GLGuiFixedpositionBox::process(const Event& event) 61 { 62 switch(event.type) 63 { 64 case EV_VIDEO_RESIZE: 65 this->resize(); 66 break; 67 68 } 69 70 } 71 72 58 73 }
Note: See TracChangeset
for help on using the changeset viewer.