source/Platform/Unix/X11Display.cpp: implement fullscreen somewhat correctly :)
This commit is contained in:
parent
186a6e0f14
commit
2cf035089b
2 changed files with 82 additions and 1 deletions
|
|
@ -7,6 +7,7 @@
|
|||
#include <X11/Xos.h>
|
||||
#include <cstdint>
|
||||
#include <Platform/PlatformDisplay.h>
|
||||
#include "Xrandr.h"
|
||||
|
||||
namespace sp {
|
||||
|
||||
|
|
@ -62,6 +63,10 @@ protected :
|
|||
|
||||
void createHiddenCursor();
|
||||
|
||||
void toggleFullscreen(bool enabled);
|
||||
|
||||
void wm_fullscreen(bool enabled);
|
||||
|
||||
protected :
|
||||
|
||||
::Window m_win;
|
||||
|
|
@ -72,6 +77,10 @@ protected :
|
|||
::Cursor m_cur_last;
|
||||
|
||||
Vector2u m_size;
|
||||
|
||||
XRandR::VideoMode m_fullscreen_mode;
|
||||
|
||||
XRandR::VideoMode m_desktop_mode;
|
||||
};
|
||||
|
||||
} // namespace sp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue