(Menu) Use float for icon coordinates, makes animations look smoother

This commit is contained in:
Jean-André Santoni 2015-12-03 15:34:17 +07:00
parent f4f046fe17
commit bc602645c7
5 changed files with 6 additions and 6 deletions

View File

@ -102,7 +102,7 @@ static void menu_display_d3d_blend_end(void)
}
static void menu_display_d3d_draw(
unsigned x, unsigned y,
float x, float y,
unsigned width, unsigned height,
struct gfx_coords *coords,
void *matrix_data,

View File

@ -92,7 +92,7 @@ static void menu_display_gl_blend_end(void)
}
static void menu_display_gl_draw(
unsigned x, unsigned y,
float x, float y,
unsigned width, unsigned height,
struct gfx_coords *coords,
void *matrix_data,

View File

@ -40,7 +40,7 @@ static void menu_display_null_blend_end(void)
}
static void menu_display_null_draw(
unsigned x, unsigned y,
float x, float y,
unsigned width, unsigned height,
struct gfx_coords *coords,
void *matrix_data,

View File

@ -603,7 +603,7 @@ void menu_display_texture_unload(uintptr_t *id)
menu_disp->texture_unload(id);
}
void menu_display_draw(unsigned x, unsigned y,
void menu_display_draw(float x, float y,
unsigned width, unsigned height,
struct gfx_coords *coords,
void *matrix_data,

View File

@ -78,7 +78,7 @@ enum menu_display_driver_type
typedef struct menu_display_ctx_driver
{
void (*draw)(unsigned x, unsigned y,
void (*draw)(float x, float y,
unsigned width, unsigned height,
struct gfx_coords *coords,
void *matrix_data,
@ -141,7 +141,7 @@ void menu_display_msg_queue_push(const char *msg, unsigned prio, unsigned durati
bool menu_display_driver_init_first(void);
void menu_display_draw(unsigned x, unsigned y,
void menu_display_draw(float x, float y,
unsigned width, unsigned height,
struct gfx_coords *coords,
void *matrix_data,