mirror of
https://github.com/love2d/love.git
synced 2026-08-17 19:23:38 +02:00
Store and restore caption and mouse visibility when using setMode (bug #142)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user