mirror of
https://github.com/flightlessmango/MangoHud.git
synced 2024-11-10 01:10:27 +00:00
mangoapp: notifier
This commit is contained in:
parent
4cd2ba539f
commit
b0fc3d348a
@ -28,6 +28,7 @@ overlay_params params {};
|
|||||||
static ImVec2 window_size;
|
static ImVec2 window_size;
|
||||||
static uint32_t vendorID;
|
static uint32_t vendorID;
|
||||||
static std::string deviceName;
|
static std::string deviceName;
|
||||||
|
static notify_thread notifier;
|
||||||
|
|
||||||
struct mangoapp_msg_header {
|
struct mangoapp_msg_header {
|
||||||
long msg_type; // Message queue ID, never change
|
long msg_type; // Message queue ID, never change
|
||||||
@ -121,6 +122,8 @@ int main(int, char**)
|
|||||||
create_fonts(params, sw_stats.font1, sw_stats.font_text);
|
create_fonts(params, sw_stats.font1, sw_stats.font_text);
|
||||||
HUDElements.convert_colors(params);
|
HUDElements.convert_colors(params);
|
||||||
init_cpu_stats(params);
|
init_cpu_stats(params);
|
||||||
|
notifier.params = ¶ms;
|
||||||
|
start_notifier(notifier);
|
||||||
deviceName = (char*)glGetString(GL_RENDERER);
|
deviceName = (char*)glGetString(GL_RENDERER);
|
||||||
sw_stats.deviceName = deviceName;
|
sw_stats.deviceName = deviceName;
|
||||||
if (deviceName.find("Radeon") != std::string::npos
|
if (deviceName.find("Radeon") != std::string::npos
|
||||||
|
Loading…
Reference in New Issue
Block a user