Changeset 47:411a69092798 in xplra for src/plugin/src/xplra/MessageWindow.cc
- Timestamp:
- 02/16/13 09:24:42 (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/plugin/src/xplra/MessageWindow.cc
r46 r47 80 80 heightDataRef = XPLMFindDataRef("sim/graphics/view/window_height"); 81 81 82 int screenWidth = XPLMGetDatai(widthDataRef); 83 int screenHeight = XPLMGetDatai(heightDataRef); 84 85 // Util::debug("hu.varadiistvan.xplra.MessageWindow: screenWidth=%d, screenHeight=%d\n", 86 // screenWidth, screenHeight); 87 88 left = 50; right = screenWidth - left; 89 top = screenHeight * 9 / 10; bottom = top - 25; 82 resetLocation(); 90 83 91 84 windowID = XPLMCreateWindow(left, top, right, bottom, 0, … … 116 109 { 117 110 showForced = false; 111 } 112 113 //------------------------------------------------------------------------------ 114 115 void MessageWindow::reset() 116 { 117 resetLocation(); 118 XPLMSetWindowGeometry(windowID, left, top, right, bottom); 118 119 } 119 120 … … 196 197 //------------------------------------------------------------------------------ 197 198 199 void MessageWindow::resetLocation() 200 { 201 int screenWidth = XPLMGetDatai(widthDataRef); 202 int screenHeight = XPLMGetDatai(heightDataRef); 203 204 // Util::debug("hu.varadiistvan.xplra.MessageWindow: screenWidth=%d, screenHeight=%d\n", 205 // screenWidth, screenHeight); 206 207 left = 50; right = screenWidth - left; 208 top = screenHeight * 9 / 10; bottom = top - 25; 209 } 210 211 //------------------------------------------------------------------------------ 212 198 213 // Local Variables: 199 214 // mode: C++
Note:
See TracChangeset
for help on using the changeset viewer.