#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()) { if (auto dlg = manager->get()) { if (dlg->progress_bar_count()) Emu.GetCallbacks().handle_taskbar_progress(0, 1); } manager->remove(uid); } if (on_close) on_close(return_code); } void overlay::refresh() { if (auto rsxthr = rsx::get_current_renderer()) { const auto now = get_system_time() - 1000000; if ((now - rsxthr->last_flip_time) > min_refresh_duration_us) { rsxthr->native_ui_flip_request.store(true); } } } } // namespace overlays } // namespace rsx