From 7a9684e3507e2be37a636a58ed06e3f3800f97f8 Mon Sep 17 00:00:00 2001 From: hendricks266 Date: Thu, 22 Feb 2018 14:09:38 +0000 Subject: [PATCH] Amend previous commit git-svn-id: https://svn.eduke32.com/eduke32@6687 1a8010ca-5511-0410-912e-c29ae57300e0 --- source/duke3d/src/menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/menus.cpp b/source/duke3d/src/menus.cpp index 602ec2685..f965f496a 100644 --- a/source/duke3d/src/menus.cpp +++ b/source/duke3d/src/menus.cpp @@ -4326,7 +4326,7 @@ static void Menu_RunScrollbar(Menu_t *cm, MenuMenuFormat_t const * const format, if (ud.menu_scrollbartilenum >= 0) { scrollregionstart += tilesiz[scrollTileTop].y*ud.menu_scrollbarz; - scrollregionend += tilesiz[scrollTileBottom].y*ud.menu_scrollbarz; + scrollregionend -= tilesiz[scrollTileBottom].y*ud.menu_scrollbarz; } const int32_t scrollregionheight = scrollregionend - scrollregionstart - (tilesiz[scrollTileCursor].y*ud.menu_scrollcursorz); const int32_t scrollPosMax = totalextent - klabs(format->bottomcutoff);