Update to latest ZWidget version
This adds new features (such as themes) alongside fixing numerous bugs. This should be kept up-to-date with upstream more often and changes to it should be PR'd back to its main repo.
This commit is contained in:
parent
f4eebd1ced
commit
885c1d2920
101 changed files with 10156 additions and 2204 deletions
|
|
@ -118,6 +118,7 @@
|
|||
#include "screenjob.h"
|
||||
#include "startscreen.h"
|
||||
#include "shiftstate.h"
|
||||
#include "common/widgets/errorwindow.h"
|
||||
|
||||
#ifdef __unix__
|
||||
#include "i_system.h" // for SHARE_DIR
|
||||
|
|
@ -3750,6 +3751,15 @@ static int D_DoomMain_Internal (void)
|
|||
|
||||
int GameMain()
|
||||
{
|
||||
// On Windows, prefer the native win32 backend.
|
||||
// On other platforms, use SDL until the other backends are more mature.
|
||||
auto zwidget = DisplayBackend::TryCreateWin32();
|
||||
if (!zwidget)
|
||||
zwidget = DisplayBackend::TryCreateSDL2();
|
||||
if (!zwidget)
|
||||
return -1;
|
||||
DisplayBackend::Set(std::move(zwidget));
|
||||
|
||||
int ret = 0;
|
||||
GameTicRate = TICRATE;
|
||||
I_InitTime();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue