Skip to content

Commit

Permalink
remove vendorID param from check_keybinds
Browse files Browse the repository at this point in the history
  • Loading branch information
Etaash-mathamsetty committed Dec 25, 2024
1 parent 44240ba commit cc88ea1
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ int main(int, char**)
PropModeReplace, (unsigned char *)&value, 1);
// Main loop
while (!glfwWindowShouldClose(window)){
check_keybinds(params, vendorID);
check_keybinds(params);

if (!params.no_display){
if (mangoapp_paused){
Expand Down
2 changes: 1 addition & 1 deletion src/gl/gl_hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ void imgui_render(unsigned int width, unsigned int height)
process_control_socket(control_client, params);
}

check_keybinds(params, vendorID);
check_keybinds(params);
update_hud_info(sw_stats, params, vendorID);

ImGuiContext *saved_ctx = ImGui::GetCurrentContext();
Expand Down
2 changes: 1 addition & 1 deletion src/keybinds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

Clock::time_point last_f2_press, toggle_fps_limit_press, toggle_preset_press, last_f12_press, reload_cfg_press, last_upload_press;

void check_keybinds(struct overlay_params& params, uint32_t vendorID){
void check_keybinds(struct overlay_params& params){
using namespace std::chrono_literals;
auto now = Clock::now(); /* us */
auto elapsedF2 = now - last_f2_press;
Expand Down
2 changes: 1 addition & 1 deletion src/overlay.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ void update_hud_info(struct swapchain_stats& sw_stats, const struct overlay_para
void update_hud_info_with_frametime(struct swapchain_stats& sw_stats, const struct overlay_params& params, uint32_t vendorID, uint64_t frametime_ns);
void update_hw_info(const struct overlay_params& params, uint32_t vendorID);
void init_cpu_stats(overlay_params& params);
void check_keybinds(overlay_params& params, uint32_t vendorID);
void check_keybinds(overlay_params& params);
void init_system_info(void);
void FpsLimiter(struct fps_limit& stats);
void create_fonts(ImFontAtlas* font_atlas, const overlay_params& params, ImFont*& small_font, ImFont*& text_font);
Expand Down
2 changes: 1 addition & 1 deletion src/vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ static void snapshot_swapchain_frame(struct swapchain_data *data)
struct device_data *device_data = data->device;
struct instance_data *instance_data = device_data->instance;
update_hud_info(data->sw_stats, instance_data->params, device_data->properties.vendorID);
check_keybinds(instance_data->params, device_data->properties.vendorID);
check_keybinds(instance_data->params);
#ifdef __linux__
if (instance_data->params.control >= 0) {
control_client_check(instance_data->params.control, instance_data->control_client, gpu.c_str());
Expand Down
2 changes: 1 addition & 1 deletion src/win/d3d_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ void init_d3d_shared(){
}

void d3d_run(){
check_keybinds(params, vendorID);
check_keybinds(params);
update_hud_info(sw_stats, params, vendorID);
}

0 comments on commit cc88ea1

Please sign in to comment.