mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-26 12:35:27 +00:00
fix gcc warning, probably also the logic
comparing two char pointers doesn't compare the strings
This commit is contained in:
parent
fb310f2247
commit
010165b2c2
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user