From: DeaDDooMER Date: Fri, 10 Apr 2020 07:29:16 +0000 (+0400) Subject: render: fix menu disappear on sdl1 X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=fbbbdcdd6dd7fe274a993b9868d540c6cf8f0eb4;p=flatwaifu.git render: fix menu disappear on sdl1 --- diff --git a/src/gl/render.c b/src/gl/render.c index 0818286..2b5d531 100644 --- a/src/gl/render.c +++ b/src/gl/render.c @@ -858,6 +858,7 @@ static void get_menu_size (const new_menu_t *m, int *w, int *h) { case GM_SMALL: x = Z_get_small_string_width("%s", m->title); break; default: assert(0); } + y = 0; for (i = 0; i < n; i++) { get_entry_size(m, i, &xx, &yy); x = max(x, xx);