From 104f7c465eb48ed43c5caa466212b3416adf85c7 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Tue, 30 Jun 2020 20:04:17 -0400 Subject: [PATCH] Updated init call for game viewer SDL to match GL. --- src/drivers/Qt/GameViewerSDL.cpp | 4 +--- src/drivers/Qt/GameViewerSDL.h | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/drivers/Qt/GameViewerSDL.cpp b/src/drivers/Qt/GameViewerSDL.cpp index 8576ffac..50dffda1 100644 --- a/src/drivers/Qt/GameViewerSDL.cpp +++ b/src/drivers/Qt/GameViewerSDL.cpp @@ -37,12 +37,10 @@ gameViewSDL_t::~gameViewSDL_t(void) } -int gameViewSDL_t::init( double devPixRatioIn ) +int gameViewSDL_t::init(void) { WId windowHandle; - devPixRatio = devPixRatioIn; - if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0) { printf("[SDL] Failed to initialize video subsystem.\n"); diff --git a/src/drivers/Qt/GameViewerSDL.h b/src/drivers/Qt/GameViewerSDL.h index 61f3da04..2a7b4b05 100644 --- a/src/drivers/Qt/GameViewerSDL.h +++ b/src/drivers/Qt/GameViewerSDL.h @@ -16,7 +16,7 @@ class gameViewSDL_t : public QWidget gameViewSDL_t(QWidget *parent = 0); ~gameViewSDL_t(void); - int init(double devPixRatioIn = 1.0); + int init(void); void reset(void); void cleanup(void);