(GLUI) Blend cursor

This commit is contained in:
twinaphex 2015-11-01 19:26:24 +01:00
parent 2b087f3be0
commit 9f3a8dd432

View File

@ -591,6 +591,8 @@ static void glui_draw_cursor(gl_t *gl, glui_handle_t *glui,
coords.lut_tex_coord = glui_tex_coords; coords.lut_tex_coord = glui_tex_coords;
coords.color = (const float*)color; coords.color = (const float*)color;
menu_display_draw_icon_blend_begin(gl);
menu_display_draw_frame( menu_display_draw_frame(
x - 32, x - 32,
height - y - 32, height - y - 32,
@ -599,6 +601,8 @@ static void glui_draw_cursor(gl_t *gl, glui_handle_t *glui,
gl->shader, &coords, &mymat, gl->shader, &coords, &mymat,
glui->textures.list[GLUI_TEXTURE_POINTER].id, 4, glui->textures.list[GLUI_TEXTURE_POINTER].id, 4,
MENU_DISPLAY_PRIM_TRIANGLESTRIP); MENU_DISPLAY_PRIM_TRIANGLESTRIP);
menu_display_draw_icon_blend_end(gl);
} }
static size_t glui_list_get_size(void *data, menu_list_type_t type) static size_t glui_list_get_size(void *data, menu_list_type_t type)