Added crosshair in fullscreen mode (automatic).

This commit is contained in:
Tats
2014-10-21 20:16:23 +00:00
parent a50d44da23
commit dc976794d9
3 changed files with 26 additions and 1 deletions
+4
View File
@@ -89,6 +89,10 @@ void OutputGLWindow::keyPressEvent(QKeyEvent *event)
void OutputGLWindow::setFullScreen(bool fullscreen)
{
// Activate crosshair in fullscreen mode.
setCursorVisible(!fullscreen);
canvas->setDisplayCrosshair(fullscreen);
// NOTE: The showFullScreen() method does not work well under Ubuntu Linux. The code below fixes the issue.
// Notice that there might be problems with the fullscreen in other OS / window managers. If so, please add
// the code to fix those issues here.