Increase height of kconfig joystick window

The addition of the binding for a menu key causes the axes to float off
the bottom of the window.  Increase the window height to fix this.
This commit is contained in:
Kp 2020-07-09 02:47:18 +00:00
parent 5735175999
commit 4f26a205ea

View file

@ -783,7 +783,9 @@ static void kconfig_sub(const char *litems, const kc_item * items,kc_mitem *mite
const auto &&fspacx = FSPACX();
const auto &&fspacy = FSPACY();
if (!(menu->wind = window_create(grd_curscreen->sc_canvas, (SWIDTH - fspacx(320)) / 2, (SHEIGHT - fspacy(200)) / 2, fspacx(320), fspacy(200),
const auto &&window_width = fspacx(320);
const auto &&window_height = fspacy(220);
if (!(menu->wind = window_create(grd_curscreen->sc_canvas, (SWIDTH - window_width) / 2, (SHEIGHT - window_height) / 2, window_width, window_height,
kconfig_handler, menu)))
delete menu;
}