[Ohrrpgce] SVN: teeemcee/8318 menus: Add correct_menu_state (replacing clamp_menu_state), and use it e

subversion at HamsterRepublic.com subversion at HamsterRepublic.com
Mon Jan 16 19:24:44 PST 2017


teeemcee
2017-01-16 19:24:43 -0800 (Mon, 16 Jan 2017)
470
menus: Add correct_menu_state (replacing clamp_menu_state), and use it everywhere

This just clamps .top and .pt to valid values, and is called after changing
the menu size or .pt.

Not used in a couple init_menu_state overloads because they keep .pt
away from the very top or bottom of the screen. All usemenu overloads
should have to do that too before changing correct_menu_state, which
would be nice, but I don't want to get too sidetracked right now.

Net -16 lines
---
U   wip/browse.bas
U   wip/customsubs.rbas
U   wip/drawing.bas
U   wip/editedit.bas
U   wip/menus.bas
U   wip/menus.bi
U   wip/reloadedit.bas
U   wip/sliceedit.bas


More information about the Ohrrpgce mailing list