From 13b52f5c8e87b15c74f45aab201377bf95644371 Mon Sep 17 00:00:00 2001 From: harry Date: Tue, 9 May 2023 23:01:53 -0400 Subject: [PATCH] A few corrections to the QPainter Video driver. --- src/drivers/Qt/ConsoleViewerQWidget.cpp | 2 +- src/drivers/Qt/ConsoleWindow.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/drivers/Qt/ConsoleViewerQWidget.cpp b/src/drivers/Qt/ConsoleViewerQWidget.cpp index 0065124b..78313a39 100644 --- a/src/drivers/Qt/ConsoleViewerQWidget.cpp +++ b/src/drivers/Qt/ConsoleViewerQWidget.cpp @@ -40,7 +40,7 @@ ConsoleViewQWidget_t::ConsoleViewQWidget_t(QWidget *parent) { consoleWin_t *win = qobject_cast (parent); - printf("Initialing QPainter Video Driver\n"); + printf("Initializing QPainter Video Driver\n"); QPalette pal = palette(); diff --git a/src/drivers/Qt/ConsoleWindow.cpp b/src/drivers/Qt/ConsoleWindow.cpp index e46470e6..e713ef0d 100644 --- a/src/drivers/Qt/ConsoleWindow.cpp +++ b/src/drivers/Qt/ConsoleWindow.cpp @@ -152,7 +152,7 @@ consoleWin_t::consoleWin_t(QWidget *parent) g_config->getOption( "SDL.Sound.UseGlobalFocus", &soundUseGlobalFocus ); g_config->getOption ("SDL.VideoDriver", &videoDriver); - if ( videoDriver == 1) + if ( videoDriver == ConsoleViewerBase::VIDEO_DRIVER_SDL) { viewport_SDL = new ConsoleViewSDL_t(this); @@ -160,7 +160,7 @@ consoleWin_t::consoleWin_t(QWidget *parent) viewport_Interface = static_cast(viewport_SDL); } - else if ( videoDriver == 2) + else if ( videoDriver == ConsoleViewerBase::VIDEO_DRIVER_QPAINTER) { viewport_QWidget = new ConsoleViewQWidget_t(this);