Always have the AllAppsView visible, but have it draw nothing
when it shouldn't be visible.
This lets us do clean animations and not wait for GL to spool up.
diff --git a/res/raw/rollo.c b/res/raw/rollo.c
index 028d537..283d89d 100644
--- a/res/raw/rollo.c
+++ b/res/raw/rollo.c
@@ -33,7 +33,7 @@
#define STATE_SELECTED_ICON_INDEX 9
#define STATE_SELECTED_ICON_TEXTURE 10
-#define STATE_BORDERY0 11
+#define STATE_VISIBLE 11
// Drawing constants, should be parameters ======
#define VIEW_ANGLE 1.28700222f
@@ -155,6 +155,11 @@
// Clear to transparent
pfClearColor(0.0f, 0.0f, 0.0f, 0.0f);
+ // If we're not supposed to be showing, don't do anything.
+ if (!loadI32(ALLOC_STATE, STATE_VISIBLE)) {
+ return 0;
+ }
+
// icons & labels
int iconCount = loadI32(ALLOC_STATE, STATE_ICON_COUNT);
int pageCount = count_pages(iconCount);