From f706c2bf7011abe1b823cca4e93feafd32f497d0 Mon Sep 17 00:00:00 2001 From: Collateral <> Date: Thu, 6 Oct 2022 19:46:47 +0200 Subject: [PATCH] fixed fullscreen on startup --- src/main/java/net/vulkanmod/mixin/WindowMixin.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/net/vulkanmod/mixin/WindowMixin.java b/src/main/java/net/vulkanmod/mixin/WindowMixin.java index 9c8c12e96..dfa24502e 100644 --- a/src/main/java/net/vulkanmod/mixin/WindowMixin.java +++ b/src/main/java/net/vulkanmod/mixin/WindowMixin.java @@ -80,6 +80,15 @@ public void setVsync(boolean vsync) { Vulkan.setVsync(vsync); } + /** + * @author + */ + @Overwrite + public void toggleFullscreen() { + this.fullscreen = !this.fullscreen; + Options.fullscreenDirty = true; + } + /** * @author */