Fix unsigned bug in RGUI.

This commit is contained in:
Themaister 2013-04-04 22:27:16 +02:00
parent d7797f8497
commit 7c3e4ef12d

View File

@ -1476,7 +1476,7 @@ int rgui_iterate(rgui_handle_t *rgui, rgui_action_t action)
break;
case RGUI_ACTION_LEFT:
if (rgui->selection_ptr - 8 > 0)
if (rgui->selection_ptr > 8)
rgui->selection_ptr -= 8;
else
rgui->selection_ptr = 0;