Add dont_replace_coords to menu_display_ctx_draw_t

This commit is contained in:
twinaphex 2016-04-19 08:08:40 +02:00
parent 1aa8a950ef
commit f3d072cdcf
2 changed files with 3 additions and 1 deletions

View File

@ -502,7 +502,8 @@ bool menu_display_ctl(enum menu_display_ctl_state state, void *data)
coords.lut_tex_coord = new_tex_coord;
coords.color = (const float*)draw->color;
draw->coords = &coords;
if (!draw->dont_replace_coords)
draw->coords = &coords;
if (!draw->texture)
draw->texture = menu_display_white_texture;

View File

@ -112,6 +112,7 @@ typedef struct menu_display_ctx_draw
float y;
unsigned width;
unsigned height;
bool dont_replace_coords;
struct gfx_coords *coords;
void *matrix_data;
uintptr_t texture;