Skip to content

Commit

Permalink
Disable fullscreen code <0.13
Browse files Browse the repository at this point in the history
  • Loading branch information
MCMrARM committed May 9, 2019
1 parent 4075456 commit 9d41f29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/window_callbacks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void WindowCallbacks::handleInitialWindowSize() {
window.getWindowSize(windowWidth, windowHeight);
onWindowSizeCallback(windowWidth, windowHeight);

if (game.getPrimaryUserOptions()->getFullscreen())
if (MinecraftVersion::isAtLeast(0, 13) && game.getPrimaryUserOptions()->getFullscreen())
window.setFullscreen(true);
}

Expand Down Expand Up @@ -105,7 +105,7 @@ void WindowCallbacks::onKeyboard(int key, KeyAction action) {
else if (key == 35)
appPlatform.onKeyboardDirectionKey(ClientAppPlatform::DirectionKey::EndKey);
}
if (key == 112 + 10 && action == KeyAction::PRESS)
if (key == 112 + 10 && action == KeyAction::PRESS && MinecraftVersion::isAtLeast(0, 13))
game.getPrimaryUserOptions()->setFullscreen(!game.getPrimaryUserOptions()->getFullscreen());
if (action == KeyAction::PRESS || action == KeyAction::RELEASE) {
Keyboard::InputEvent evData;
Expand Down

0 comments on commit 9d41f29

Please sign in to comment.