fix menu corruption when size/label changes
This commit is contained in:
parent
1119068227
commit
cfd92af2b6
3 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,9 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 0.9.16:
|
||||
*06/04/22:
|
||||
* Fix workspace menu corruption when window title changes (Simon)
|
||||
sf.net bug #1113668
|
||||
Menu.cc MenuItem.cc
|
||||
* Fix crash when toolbar disabled (Simon)
|
||||
Slit.hh/cc Screen.cc
|
||||
* Couple of memory-based fixes from valgrind (Simon)
|
||||
|
|
|
@ -444,6 +444,9 @@ void Menu::updateMenu(int active_index) {
|
|||
|
||||
// must update main window size whether visible or not
|
||||
// the rest can wait until the end
|
||||
if (menu.window.width() != new_width)
|
||||
m_need_update = true;
|
||||
|
||||
menu.window.resize(new_width, new_height);
|
||||
|
||||
if (!isVisible())
|
||||
|
|
|
@ -114,7 +114,7 @@ void MenuItem::draw(FbDrawable &draw,
|
|||
theme.frameFont().drawText(draw, // drawable
|
||||
theme.screenNum(),
|
||||
tgc.gc(),
|
||||
m_label.c_str(), m_label.size(), // text string and lenght
|
||||
label().c_str(), label().size(), // text string and lenght
|
||||
text_x, text_y); // position
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue