Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix gcc warning, probably also the logic
comparing two char pointers doesn't compare the strings
  • Loading branch information
degasus committed Jun 20, 2013
1 parent fb310f2 commit 010165b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Core/DolphinWX/Src/InputConfigDiagBitmaps.cpp
Expand Up @@ -107,12 +107,12 @@ void InputConfigDialog::UpdateBitmaps(wxTimerEvent& WXUNUSED(event))
, d_of = box / 256.0
, x_of = box / 2.0;

if ((*g)->control_group->name == "Main Stick")
if (strcmp((*g)->control_group->name, "Main Stick") == 0)
{
max = (87.0 / 127.0) * 100;
diagonal = (55.0 / 127.0) * 100.0;
}
else if ((*g)->control_group->name == "C-Stick")
else if (strcmp((*g)->control_group->name,"C-Stick") == 0)
{
max = (74.0 / 127.0) * 100;
diagonal = (46.0 / 127.0) * 100;
Expand Down

0 comments on commit 010165b

Please sign in to comment.