summaryrefslogtreecommitdiffstats
path: root/apps/gui/skin_engine/skin_engine.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2020-11-01 12:25:39 -0500
committerWilliam Wilgus <me.theuser@yahoo.com>2020-11-01 17:43:42 +0000
commit0c99a3f9fb9db2e2ab96a69b5adc100462e72843 (patch)
treef276ac92068b18fbba8f6ff9c4346e70f723d96d /apps/gui/skin_engine/skin_engine.c
parentf9ba96cadec09e11d4f75f9cc215fcc20293ecb3 (diff)
downloadrockbox-0c99a3f9fb9db2e2ab96a69b5adc100462e72843.tar.gz
rockbox-0c99a3f9fb9db2e2ab96a69b5adc100462e72843.tar.bz2
rockbox-0c99a3f9fb9db2e2ab96a69b5adc100462e72843.zip
Skin engine Onda Vx747
Fixing issues that existed before framebuf rewrite Fix swap issue Change-Id: I43e03b7aaf4591c1b6f88e3ba0730e279934c0df
Diffstat (limited to 'apps/gui/skin_engine/skin_engine.c')
-rw-r--r--apps/gui/skin_engine/skin_engine.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_engine.c b/apps/gui/skin_engine/skin_engine.c
index 049629b181..1515e6f025 100644
--- a/apps/gui/skin_engine/skin_engine.c
+++ b/apps/gui/skin_engine/skin_engine.c
@@ -29,6 +29,7 @@
#include "settings.h"
#include "wps.h"
#include "file.h"
+#include "misc.h"
#if CONFIG_TUNER
#include "radio.h"
#endif
@@ -314,7 +315,8 @@ bool skin_do_full_update(enum skinnable_screens skin,
{
struct viewport *vp = *(screens[screen].current_viewport);
- bool vp_is_dirty = ((vp->flags & VP_FLAG_VP_SET_CLEAN) == VP_FLAG_VP_DIRTY);
+ bool vp_is_dirty = ((vp->flags & VP_FLAG_VP_SET_CLEAN) == VP_FLAG_VP_DIRTY) &&
+ get_current_activity() == ACTIVITY_WPS;
bool ret = (skins[skin][screen].needs_full_update || vp_is_dirty);
skins[skin][screen].needs_full_update = false;