Revert "Silence signed/unsigned mismatch warnings"

This commit is contained in:
Lioncash 2014-10-27 21:00:56 -04:00
parent 9b22475649
commit 46c2b05ce2
2 changed files with 11 additions and 11 deletions

View File

@ -188,9 +188,9 @@ static int mouse_iterate(unsigned action)
driver.menu->mouse.x = 5;
if (driver.menu->mouse.y < 5)
driver.menu->mouse.y = 5;
if (driver.menu->mouse.x > (int16_t)driver.menu->width - 5)
if (driver.menu->mouse.x > driver.menu->width - 5)
driver.menu->mouse.x = driver.menu->width - 5;
if (driver.menu->mouse.y > (int16_t)driver.menu->height - 5)
if (driver.menu->mouse.y > driver.menu->height - 5)
driver.menu->mouse.y = driver.menu->height - 5;
driver.menu->mouse.left = driver.input->input_state(driver.input_data,

View File

@ -357,7 +357,7 @@ static void xmb_render_messagebox(const char *message)
static void xmb_selection_pointer_changed(void)
{
size_t i;
int i;
unsigned current, end;
xmb_handle_t *xmb = (xmb_handle_t*)driver.menu->userdata;
@ -380,11 +380,11 @@ static void xmb_selection_pointer_changed(void)
if (i < current)
if (xmb->depth > 1)
iy = xmb->vspacing * (i - current + xmb->above_subitem_offset);
iy = xmb->vspacing * (i - (int)current + xmb->above_subitem_offset);
else
iy = xmb->vspacing * (i - current + xmb->above_item_offset);
iy = xmb->vspacing * (i - (int)current + xmb->above_item_offset);
else
iy = xmb->vspacing * (i - current + xmb->under_item_offset);
iy = xmb->vspacing * (i - (int)current + xmb->under_item_offset);
if (i == current)
{
@ -402,7 +402,7 @@ static void xmb_selection_pointer_changed(void)
static void xmb_list_open_old(file_list_t *list, int dir, size_t current)
{
size_t i;
int i;
xmb_handle_t *xmb = (xmb_handle_t*)driver.menu->userdata;
if (!xmb)
@ -425,7 +425,7 @@ static void xmb_list_open_old(file_list_t *list, int dir, size_t current)
static void xmb_list_open_new(file_list_t *list, int dir, size_t current)
{
size_t i;
int i;
xmb_handle_t *xmb = (xmb_handle_t*)driver.menu->userdata;
if (!xmb)
@ -450,11 +450,11 @@ static void xmb_list_open_new(file_list_t *list, int dir, size_t current)
if (i < current)
if (xmb->depth > 1)
iy = xmb->vspacing * (i - current + xmb->above_subitem_offset);
iy = xmb->vspacing * (i - (int)current + xmb->above_subitem_offset);
else
iy = xmb->vspacing * (i - current + xmb->above_item_offset);
iy = xmb->vspacing * (i - (int)current + xmb->above_item_offset);
else
iy = xmb->vspacing * (i - current + xmb->under_item_offset);
iy = xmb->vspacing * (i - (int)current + xmb->under_item_offset);
if (i == current)
iy = xmb->vspacing * xmb->active_item_factor;