]> git.mdlowis.com Git - proto/labwc.git/commit
menu: some refactor
authortokyo4j <hrak1529@gmail.com>
Tue, 3 Dec 2024 06:58:07 +0000 (15:58 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Sat, 14 Dec 2024 20:09:53 +0000 (20:09 +0000)
commit10fc656c2378f61ff6fc88045c1f9e5ba208487d
treebf98869fb349cfafbdf790c507a88c8f5f3f5204
parentf5d706bae30b7b268ee5d24d17b8d96879a60746
menu: some refactor

- Don't store font/background buffers in menuitem struct since we no
  longer dynamically update buffers of existing menuitems.
- Factor out the duplicated codes for creating menu item scenes for each
  unselected/selected states.
include/menu/menu.h
src/menu/menu.c