rpcsx/rpcs3/Emu/RSX/Overlays/overlays.cpp
VelocityRa 33b01d9306 overlays: Allow for non-interactable UI components
* Also fix a few warnings in overlay_controls
2018-05-30 12:35:41 +03:00

32 lines
567 B
C++

#include "stdafx.h"
#include "overlays.h"
#include "../GSRender.h"
namespace rsx
{
namespace overlays
{
//Singleton instance declaration
fontmgr* fontmgr::m_instance = nullptr;
void user_interface::close()
{
//Force unload
exit = true;
if (auto manager = fxm::get<display_manager>())
manager->remove(uid);
if (on_close)
on_close(return_code);
}
void overlay::refresh()
{
if (auto rsxthr = rsx::get_current_renderer())
{
rsxthr->native_ui_flip_request.store(true);
}
}
} // namespace overlays
} // namespace rsx