Changeset 8024 for code/branches/usability/data
- Timestamp:
- Mar 5, 2011, 11:19:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/usability/data/gui/scripts/GraphicsMenu.lua
r8023 r8024 177 177 local currentWidth = orxonox.GraphicsManager:getInstance():getWindowWidth() 178 178 local currentHeight = orxonox.GraphicsManager:getInstance():getWindowHeight() 179 180 if P.forceResolutionEditboxes then 181 currentWidth = P.newWidth 182 currentHeight = P.newHeight 183 P.forceResolutionEditboxes = false 184 end 185 179 186 local currentResolution = currentWidth .. " x " .. currentHeight 180 187 … … 323 330 local heightEditbox = winMgr:getWindow("orxonox/Display/Resolution/EditboxHeight") 324 331 332 P.newWidth = widthEditbox:getText() 333 P.newHeight = heightEditbox:getText() 334 P.forceResolutionEditboxes = true 335 325 336 -- start revert timer 326 337 P.oldWidth = orxonox.GraphicsManager:getInstance():getWindowWidth() … … 331 342 332 343 -- change settings 333 orxonox.CommandExecutor:execute("GraphicsManager setScreenResolution " .. widthEditbox:getText() .. " " .. heightEditbox:getText().. " " .. checkedFullscreen)344 orxonox.CommandExecutor:execute("GraphicsManager setScreenResolution " .. P.newWidth .. " " .. P.newHeight .. " " .. checkedFullscreen) 334 345 335 346 P.updateApplyButton()
Note: See TracChangeset
for help on using the changeset viewer.