diff options
| author | degasus <wickmarkus@web.de> | 2013-06-20 10:43:09 +0200 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2013-06-20 10:43:09 +0200 |
| commit | 010165b2c2ecb4e712ef3e2a601adba4001af8dc (patch) | |
| tree | 268d0aae09f961645456ae839344b235b26f841c /Source/Core | |
| parent | fb310f224760b4b1920f35e6860513fa8c60026c (diff) | |
fix gcc warning, probably also the logic
comparing two char pointers doesn't compare the strings
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinWX/Src/InputConfigDiagBitmaps.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinWX/Src/InputConfigDiagBitmaps.cpp b/Source/Core/DolphinWX/Src/InputConfigDiagBitmaps.cpp index 74015bd274..03c140b992 100644 --- a/Source/Core/DolphinWX/Src/InputConfigDiagBitmaps.cpp +++ b/Source/Core/DolphinWX/Src/InputConfigDiagBitmaps.cpp @@ -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; |
