Updated init call for game viewer SDL to match GL.
This commit is contained in:
parent
d38f1b0c1b
commit
104f7c465e
|
@ -37,12 +37,10 @@ gameViewSDL_t::~gameViewSDL_t(void)
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int gameViewSDL_t::init( double devPixRatioIn )
|
int gameViewSDL_t::init(void)
|
||||||
{
|
{
|
||||||
WId windowHandle;
|
WId windowHandle;
|
||||||
|
|
||||||
devPixRatio = devPixRatioIn;
|
|
||||||
|
|
||||||
if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0)
|
if (SDL_InitSubSystem(SDL_INIT_VIDEO) != 0)
|
||||||
{
|
{
|
||||||
printf("[SDL] Failed to initialize video subsystem.\n");
|
printf("[SDL] Failed to initialize video subsystem.\n");
|
||||||
|
|
|
@ -16,7 +16,7 @@ class gameViewSDL_t : public QWidget
|
||||||
gameViewSDL_t(QWidget *parent = 0);
|
gameViewSDL_t(QWidget *parent = 0);
|
||||||
~gameViewSDL_t(void);
|
~gameViewSDL_t(void);
|
||||||
|
|
||||||
int init(double devPixRatioIn = 1.0);
|
int init(void);
|
||||||
void reset(void);
|
void reset(void);
|
||||||
void cleanup(void);
|
void cleanup(void);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue