improve window manager simple

This commit is contained in:
lixianjing 2020-06-15 12:03:41 +08:00
parent 678e1c9b08
commit 6e11cf30d9
2 changed files with 5 additions and 4 deletions

View File

@ -2,7 +2,8 @@
* 2020/06/15 * 2020/06/15
* 完善toast (感谢培煌提供补丁) * 完善toast (感谢培煌提供补丁)
* 修复旋转后online\_fb的line\_length不正确的问(感谢智明提供补丁)。 * 修复旋转后online\_fb的line\_length不正确的问题(感谢智明提供补丁)。
* 完善window manager simple(感谢智明提供补丁)。
* 2020/06/14 * 2020/06/14
* 完善 scroll view增加滚动相关事件。 * 完善 scroll view增加滚动相关事件。

View File

@ -372,8 +372,8 @@ static ret_t window_manager_simple_on_event(widget_t* widget, event_t* e) {
wh_t w = wm->lcd_w; wh_t w = wm->lcd_w;
wh_t h = wm->lcd_h; wh_t h = wm->lcd_h;
if (orientation == LCD_ORIENTATION_90 || orientation == LCD_ORIENTATION_270) { if (orientation == LCD_ORIENTATION_90 || orientation == LCD_ORIENTATION_270) {
w = wm->lcd_w; w = wm->lcd_h;
h = wm->lcd_h; h = wm->lcd_w;
} }
lcd_resize(lcd, w, h, 0); lcd_resize(lcd, w, h, 0);