mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
[zr] set focus properly
This commit is contained in:
parent
4eb6f26d92
commit
1d0beeb665
@ -267,9 +267,14 @@ static int zrmenu_wnd_control(struct zr_context *ctx,
|
||||
{
|
||||
wnd_control_toggle = false;
|
||||
if (wnd_control)
|
||||
{
|
||||
zr_window_set_position(ctx, zr_vec2(zr_window_get_position(ctx).x - width - 10, zr_window_get_position(ctx).y));
|
||||
zr_window_set_focus(ctx, "Control");
|
||||
}
|
||||
else
|
||||
zr_window_set_position(ctx, zr_vec2(zr_window_get_position(ctx).x + width + 10, zr_window_get_position(ctx).y));
|
||||
{
|
||||
zr_window_set_position(ctx, zr_vec2(zr_window_get_position(ctx).x + width + 10, zr_window_get_position(ctx).y));
|
||||
}
|
||||
}
|
||||
|
||||
/* Style */
|
||||
|
Loading…
x
Reference in New Issue
Block a user