From b8ddfe8c9d447b8627746773d750111c74cdbd92 Mon Sep 17 00:00:00 2001 From: Wouter Wijsman Date: Fri, 20 Dec 2024 12:50:23 +0100 Subject: [PATCH] Do not crash when display mode is not set --- src/OptionManager.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/OptionManager.cpp b/src/OptionManager.cpp index afb6008..4883fd5 100644 --- a/src/OptionManager.cpp +++ b/src/OptionManager.cpp @@ -236,17 +236,11 @@ void OptionManager::setHowToPlaySeen(bool value) { int OptionManager::getScreenWidth() { int result = this->options.get("screen_width", 0).asInt(); - if (result == 0) { - panic("Could not find a valid display mode!"); - } return result; } int OptionManager::getScreenHeight() { int result = this->options.get("screen_height", 0).asInt(); - if (result == 0) { - panic("Could not find a valid display mode!"); - } return result; }