A few corrections to the QPainter Video driver.

This commit is contained in:
harry 2023-05-09 23:01:53 -04:00
parent 3d6cf7a730
commit 13b52f5c8e
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ ConsoleViewQWidget_t::ConsoleViewQWidget_t(QWidget *parent)
{ {
consoleWin_t *win = qobject_cast <consoleWin_t*>(parent); consoleWin_t *win = qobject_cast <consoleWin_t*>(parent);
printf("Initialing QPainter Video Driver\n"); printf("Initializing QPainter Video Driver\n");
QPalette pal = palette(); QPalette pal = palette();

View File

@ -152,7 +152,7 @@ consoleWin_t::consoleWin_t(QWidget *parent)
g_config->getOption( "SDL.Sound.UseGlobalFocus", &soundUseGlobalFocus ); g_config->getOption( "SDL.Sound.UseGlobalFocus", &soundUseGlobalFocus );
g_config->getOption ("SDL.VideoDriver", &videoDriver); g_config->getOption ("SDL.VideoDriver", &videoDriver);
if ( videoDriver == 1) if ( videoDriver == ConsoleViewerBase::VIDEO_DRIVER_SDL)
{ {
viewport_SDL = new ConsoleViewSDL_t(this); viewport_SDL = new ConsoleViewSDL_t(this);
@ -160,7 +160,7 @@ consoleWin_t::consoleWin_t(QWidget *parent)
viewport_Interface = static_cast<ConsoleViewerBase*>(viewport_SDL); viewport_Interface = static_cast<ConsoleViewerBase*>(viewport_SDL);
} }
else if ( videoDriver == 2) else if ( videoDriver == ConsoleViewerBase::VIDEO_DRIVER_QPAINTER)
{ {
viewport_QWidget = new ConsoleViewQWidget_t(this); viewport_QWidget = new ConsoleViewQWidget_t(this);