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
|
, d_of = box / 256.0
|
||||||
, x_of = box / 2.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;
|
max = (87.0 / 127.0) * 100;
|
||||||
diagonal = (55.0 / 127.0) * 100.0;
|
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;
|
max = (74.0 / 127.0) * 100;
|
||||||
diagonal = (46.0 / 127.0) * 100;
|
diagonal = (46.0 / 127.0) * 100;
|
||||||
|
|
Loading…
Reference in New Issue