1
0
Fork 0
forked from len0rd/rockbox

Don't display 'Cancelled' splash screen if setting not changed

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12527 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Steve Bavin 2007-03-01 10:56:03 +00:00
parent 509a96dd51
commit d94c7d3f76

View file

@ -1151,10 +1151,22 @@ static bool do_set_setting(const unsigned char* string, void *variable,
}
else if (action == ACTION_STD_CANCEL)
{
gui_syncsplash(HZ/2,true,str(LANG_MENU_SETTING_CANCEL));
if (cb_data->type == INT)
*(int*)variable = oldvalue;
else *(bool*)variable = (bool)oldvalue;
{
if (*(int*)variable != oldvalue)
{
gui_syncsplash(HZ/2,true,str(LANG_MENU_SETTING_CANCEL));
*(int*)variable = oldvalue;
}
}
else
{
if (*(bool*)variable != (bool)oldvalue)
{
gui_syncsplash(HZ/2,true,str(LANG_MENU_SETTING_CANCEL));
*(bool*)variable = (bool)oldvalue;
}
}
done = true;
}
else if (action == ACTION_STD_OK)