Skip to content

Commit

Permalink
Fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
drhelius committed Apr 5, 2020
1 parent a6adafe commit d04573c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 0 additions & 2 deletions platforms/desktop-shared/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ struct config_Input
int gamepad_y_axis = 1;
};

static const char* config_input_gamepad_names[16] = {"0", "A", "B" ,"3", "L", "R", "6", "7", "SELECT", "START", "10", "11", "12", "13", "14", "15"};

EXTERN mINI::INIFile* config_ini_file;
EXTERN mINI::INIStructure config_ini_data;
EXTERN char* config_root_path;
Expand Down
7 changes: 5 additions & 2 deletions platforms/desktop-shared/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,10 @@ static void gamepad_configuration_item(const char* text, int* button)
{
ImGui::Text("%s", text);
ImGui::SameLine(70);
if (ImGui::Button(config_input_gamepad_names[*button], ImVec2(70,0)))

static const char* gamepad_names[16] = {"0", "A", "B" ,"3", "L", "R", "6", "7", "SELECT", "START", "10", "11", "12", "13", "14", "15"};

if (ImGui::Button(gamepad_names[*button], ImVec2(70,0)))
{
configured_button = button;
ImGui::OpenPopup("Gamepad Configuration");
Expand Down Expand Up @@ -622,7 +625,7 @@ static void popup_modal_about(void)

#ifdef _WIN64
ImGui::Text("Windows 64 bit detected.");
#elif
#elif defined(_WIN32)
ImGui::Text("Windows 32 bit detected.");
#endif
#ifdef __linux__
Expand Down

0 comments on commit d04573c

Please sign in to comment.