mirror of
https://github.com/mapmapteam/mapmap.git
synced 2026-06-16 12:33:19 +02:00
Added crosshair in fullscreen mode (automatic).
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user