From cb9bc3bbc8a66c3d5296bfbc68f4487c39c6ac68 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 14 Mar 2012 22:16:58 +1100 Subject: Fix FS#12606 - next track can cause the screen to be cleared This is a bit of a hack. We now trigger an event when the skin engine is doing a full redraw (which means fullscreen clear) before the lcd_update() to give the current screen a chance to redraw to avoid the screen flicker. This commit fixes the issue for screens which are entirely the list widget (i.e browser and menus), other screens will need aditional fixes (i.e quickscreen, time&date screen) Change-Id: I3ffdcd8ccad2c663732f8d5983049c837de00fe5 --- apps/appevents.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apps/appevents.h') diff --git a/apps/appevents.h b/apps/appevents.h index 36e19b0..5cb0ee5 100644 --- a/apps/appevents.h +++ b/apps/appevents.h @@ -61,6 +61,9 @@ enum { GUI_EVENT_STATUSBAR_TOGGLE = (EVENT_CLASS_GUI|1), GUI_EVENT_ACTIONUPDATE, GUI_EVENT_THEME_CHANGED, + /* Called when the UI viewport is cleared in the skin engine to + * notify the current screen that it needs to do an update */ + GUI_EVENT_NEED_UI_UPDATE, }; /** Recording events **/ -- cgit v1.1