mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +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;
|
wnd_control_toggle = false;
|
||||||
if (wnd_control)
|
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_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
|
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 */
|
/* Style */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user