Fix last glez screen thing
This commit is contained in:
parent
e73ec58d76
commit
416cd3146d
@ -9,6 +9,7 @@
|
|||||||
#include "HookedMethods.hpp"
|
#include "HookedMethods.hpp"
|
||||||
#include "timer.hpp"
|
#include "timer.hpp"
|
||||||
#include <SDL2/SDL_syswm.h>
|
#include <SDL2/SDL_syswm.h>
|
||||||
|
#include <menu/menu/Menu.hpp>
|
||||||
|
|
||||||
static bool init{ false };
|
static bool init{ false };
|
||||||
static bool init_wminfo{ 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_width = draw::width;
|
||||||
prev_height = draw::height;
|
prev_height = draw::height;
|
||||||
draw::InitGL();
|
draw::InitGL();
|
||||||
|
if (zerokernel::Menu::instance)
|
||||||
|
zerokernel::Menu::instance->resize(draw::width, draw::height);
|
||||||
init = true;
|
init = true;
|
||||||
}
|
}
|
||||||
draw::BeginGL();
|
draw::BeginGL();
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
|
|
||||||
#include <menu/GuiInterface.hpp>
|
#include <menu/GuiInterface.hpp>
|
||||||
#include "HookedMethods.hpp"
|
#include "HookedMethods.hpp"
|
||||||
#include <menu/menu/Menu.hpp>
|
|
||||||
namespace hooked_methods
|
namespace hooked_methods
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user