aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl
diff options
context:
space:
mode:
authorArisotura <thetotalworm@gmail.com>2020-12-10 18:09:11 +0100
committerArisotura <thetotalworm@gmail.com>2020-12-10 18:09:11 +0100
commit1dbe69c6bec5e1b8e75108e5ccf11361acedc925 (patch)
tree5b2b7e042788397ba45bf72aeeccdcebb73232fe /src/frontend/qt_sdl
parentaf62c9912491f4a4a1b2c75fda4b31339b2292e9 (diff)
remove some debug crap
Diffstat (limited to 'src/frontend/qt_sdl')
-rw-r--r--src/frontend/qt_sdl/main.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/frontend/qt_sdl/main.cpp b/src/frontend/qt_sdl/main.cpp
index 6e27d61..0228446 100644
--- a/src/frontend/qt_sdl/main.cpp
+++ b/src/frontend/qt_sdl/main.cpp
@@ -371,7 +371,7 @@ void EmuThread::run()
if (Input::HotkeyPressed(HK_Pause)) emit windowEmuPause();
if (Input::HotkeyPressed(HK_Reset)) emit windowEmuReset();
-
+
if (Input::HotkeyPressed(HK_FullscreenToggle)) emit windowFullscreenToggle();
if (GBACart::CartInserted && GBACart::HasSolarSensor)
@@ -507,7 +507,7 @@ void EmuThread::run()
frameLimitError = -practicalFramelimit;
if (frameLimitError > practicalFramelimit)
frameLimitError = practicalFramelimit;
-
+
if (round(frameLimitError * 1000.0) > 0.0)
{
SDL_Delay(round(frameLimitError * 1000.0));
@@ -1324,6 +1324,7 @@ void MainWindow::keyPressEvent(QKeyEvent* event)
{
if (event->isAutoRepeat()) return;
+ // TODO!! REMOVE ME IN RELEASE BUILDS!!
if (event->key() == Qt::Key_F11) NDS::debug(0);
Input::KeyPress(event);
@@ -1926,9 +1927,9 @@ void MainWindow::onTitleUpdate(QString title)
void MainWindow::onFullscreenToggled()
{
- if (!mainWindow->isFullScreen())
+ if (!mainWindow->isFullScreen())
{
- mainWindow->showFullScreen();
+ mainWindow->showFullScreen();
mainWindow->menuBar()->hide();
}
else