Fix last glez screen thing

This commit is contained in:
LightCat 2019-01-06 13:23:01 +01:00
parent e73ec58d76
commit 416cd3146d
2 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@
#include "HookedMethods.hpp"
#include "timer.hpp"
#include <SDL2/SDL_syswm.h>
#include <menu/menu/Menu.hpp>
static bool init{ false };
static bool init_wminfo{ false };
@ -51,6 +52,8 @@ DEFINE_HOOKED_METHOD(SDL_GL_SwapWindow, void, SDL_Window *window)
prev_width = draw::width;
prev_height = draw::height;
draw::InitGL();
if (zerokernel::Menu::instance)
zerokernel::Menu::instance->resize(draw::width, draw::height);
init = true;
}
draw::BeginGL();

View File

@ -5,7 +5,6 @@
#include <menu/GuiInterface.hpp>
#include "HookedMethods.hpp"
#include <menu/menu/Menu.hpp>
namespace hooked_methods
{