mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Allow toggling fullscreen without restart and add keybind (#14714)
This commit is contained in:
parent
981d67324b
commit
833bb542fc
14 changed files with 120 additions and 15 deletions
|
@ -86,6 +86,10 @@ public:
|
|||
/** \return True if window is fullscreen. */
|
||||
bool isFullscreen() const override;
|
||||
|
||||
//! Enables or disables fullscreen mode.
|
||||
/** \return True on success. */
|
||||
bool setFullscreen(bool fullscreen) override;
|
||||
|
||||
//! Checks if the window could possibly be visible.
|
||||
bool isWindowVisible() const override;
|
||||
|
||||
|
@ -299,6 +303,8 @@ private:
|
|||
|
||||
bool Resizable;
|
||||
|
||||
static u32 getFullscreenFlag(bool fullscreen);
|
||||
|
||||
core::rect<s32> lastElemPos;
|
||||
|
||||
struct SKeyMap
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue