Store and restore caption and mouse visibility when using setMode (bug #142)

This commit is contained in:
Bart van Strien
2010-12-20 17:38:26 +01:00
parent 2131e016e7
commit 36226401bf
2 changed files with 14 additions and 0 deletions
+6
View File
@@ -93,6 +93,10 @@ namespace opengl
bool scissor;
GLint scissorBox[4];
// Window info.
std::string caption;
bool mouseVisible;
// Default values.
DisplayState()
{
@@ -112,6 +116,8 @@ namespace opengl
pointSize = 1.0f;
pointStyle = Graphics::POINT_SMOOTH;
scissor = false;
caption = "";
mouseVisible = true;
}
};