Backport lakka patch retroarch-08-osk-perf.patch

This commit is contained in:
twinaphex 2017-01-29 03:57:45 +01:00
parent 207ebe5e59
commit 5326bcf814
1 changed files with 13 additions and 12 deletions

View File

@ -749,10 +749,10 @@ static void xmb_render_keyboard(xmb_handle_t *xmb,
for (i = 0; i < 44; i++) for (i = 0; i < 44; i++)
{ {
int line_y = (i / 11) * height / 10.0; int line_y = (i / 11) * height / 10.0;
uintptr_t texture = xmb->textures.list[XMB_TEXTURE_KEY];
if (i == id) if (i == id)
texture = xmb->textures.list[XMB_TEXTURE_KEY_HOVER]; {
uintptr_t texture = xmb->textures.list[XMB_TEXTURE_KEY_HOVER];
menu_display_blend_begin(); menu_display_blend_begin();
@ -765,6 +765,7 @@ static void xmb_render_keyboard(xmb_handle_t *xmb,
texture); texture);
menu_display_blend_end(); menu_display_blend_end();
}
menu_display_draw_text(xmb->font, grid[i], menu_display_draw_text(xmb->font, grid[i],
width/2.0 - (11*ptr_width)/2.0 + (i % 11) * ptr_width + ptr_width/2.0, width/2.0 - (11*ptr_width)/2.0 + (i % 11) * ptr_width + ptr_width/2.0,