Whoops - you can now restore minimized windows.
This commit is contained in:
parent
9b0eb302a8
commit
87a69959c7
1 changed files with 3 additions and 3 deletions
|
@ -266,6 +266,7 @@ WindowT *windowCreate(uint16_t x, uint16_t y, uint16_t w, uint16_t h, char *titl
|
||||||
if (flags & WIN_SCROLL_V) sflags |= SCROLLABLE_SCROLL_V;
|
if (flags & WIN_SCROLL_V) sflags |= SCROLLABLE_SCROLL_V;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//***TODO*** We shouldn't be doing this for non-resizable windows that don't scroll. Or maybe it's simpler to just leave it?
|
||||||
win->scroll = scrollableCreate(visibleSize.x, visibleSize.y, totalSize.x, totalSize.y, sflags);
|
win->scroll = scrollableCreate(visibleSize.x, visibleSize.y, totalSize.x, totalSize.y, sflags);
|
||||||
win->scroll->base.flags |= WIDGET_IS_WINDOW;
|
win->scroll->base.flags |= WIDGET_IS_WINDOW;
|
||||||
widgetAdd(W(win), 0, 0, W(win->scroll));
|
widgetAdd(W(win), 0, 0, W(win->scroll));
|
||||||
|
@ -689,15 +690,14 @@ void wmUpdate(EventT *event) {
|
||||||
_iconCount = 0;
|
_iconCount = 0;
|
||||||
for (i=0; i<arrlen(_windowList); i++) {
|
for (i=0; i<arrlen(_windowList); i++) {
|
||||||
widget = (WidgetT *)_windowList[i];
|
widget = (WidgetT *)_windowList[i];
|
||||||
widget->reg->paint(widget, 0);
|
widget->reg->paint(widget, WINDOW_PAINT_ICONS);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Paint all windows.
|
// Paint all windows.
|
||||||
_iconCount = 0;
|
|
||||||
for (i=0; i<arrlen(_windowList); i++) {
|
for (i=0; i<arrlen(_windowList); i++) {
|
||||||
surfaceSet(__guiBackBuffer);
|
surfaceSet(__guiBackBuffer);
|
||||||
widget = (WidgetT *)_windowList[i];
|
widget = (WidgetT *)_windowList[i];
|
||||||
widget->reg->paint(widget, 1);
|
widget->reg->paint(widget, WINDOW_PAINT_NORMAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get top window.
|
// Get top window.
|
||||||
|
|
Loading…
Add table
Reference in a new issue