From 844c1babf7d05c80b61c114c7f80ffb27eed259c Mon Sep 17 00:00:00 2001 From: Hans-Werner Hilse Date: Mon, 1 Dec 2014 15:09:00 +0000 Subject: [PATCH] UIManager:_refresh(): no more default refresh If no refresh type is specified, don't do a refresh. There should be now refresh types specified in all relevant places. --- frontend/ui/uimanager.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/frontend/ui/uimanager.lua b/frontend/ui/uimanager.lua index 7466d1cf3..6d79a6d17 100644 --- a/frontend/ui/uimanager.lua +++ b/frontend/ui/uimanager.lua @@ -350,8 +350,7 @@ region: Rect() that specifies the region to be updated Note that this should be the exception. --]] function UIManager:_refresh(mode, region) - -- default mode is partial - mode = mode or "partial" + if not mode then return end -- special case: full screen partial update -- will get promoted every self.FULL_REFRESH_COUNT updates if not region and mode == "partial" then