Use uint32_t for device id etc

pull/771/head
jackun 2 years ago
parent d73932ad17
commit ac7c898ba7
No known key found for this signature in database
GPG Key ID: 119DB3F1D05A9ED3

@ -35,7 +35,7 @@ float g_overflow = 50.f /* 3333ms * 0.5 / 16.6667 / 2 (to edge and back) */;
#endif
string gpuString,wineVersion,wineProcess;
int32_t deviceID;
uint32_t deviceID;
bool gui_open = false;
struct benchmark_stats benchmark;
struct fps_limit fps_limit_stats {};
@ -812,7 +812,7 @@ void init_system_info(){
#endif
}
std::string get_device_name(int32_t vendorID, int32_t deviceID)
std::string get_device_name(uint32_t vendorID, uint32_t deviceID)
{
string desc;
#ifdef __linux__

@ -140,7 +140,7 @@ struct device_data {
#ifndef MANGOAPP_LAYER
extern struct fps_limit fps_limit_stats;
extern int32_t deviceID;
extern uint32_t deviceID;
extern struct benchmark_stats benchmark;
extern ImVec2 real_font_size;
@ -162,7 +162,7 @@ void init_cpu_stats(overlay_params& params);
void check_keybinds(overlay_params& params, uint32_t vendorID);
void init_system_info(void);
void FpsLimiter(struct fps_limit& stats);
std::string get_device_name(int32_t vendorID, int32_t deviceID);
std::string get_device_name(uint32_t vendorID, uint32_t deviceID);
void create_fonts(const overlay_params& params, ImFont*& small_font, ImFont*& text_font);
void right_aligned_text(ImVec4& col, float off_x, const char *fmt, ...);
void center_text(const std::string& text);

Loading…
Cancel
Save