Update to latest ZWidget

This commit is contained in:
dpjudas 2025-02-27 02:54:04 +01:00
commit 92b08a5c18
78 changed files with 7123 additions and 1261 deletions

View file

@ -3901,6 +3901,15 @@ int D_DoomMain_Game()
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();