commit | a9d176cbd14d2a299e3a67cd9e9e1c17453c2226 | [log] [tgz] |
---|---|---|
author | Jason Sams <rjsams@android.com> | Tue Oct 06 16:02:03 2009 -0700 |
committer | Jason Sams <rjsams@android.com> | Tue Oct 06 16:02:03 2009 -0700 |
tree | 636b750702235b8779fb7de8cc350c639b32e80c | |
parent | 12c14a8559375a457bd73fd16c6815df9c38cb06 [diff] |
Don't attempt to draw if we don't have any icons to draw.
diff --git a/res/raw/rollo.c b/res/raw/rollo.c index e60b8a2..bae786d 100644 --- a/res/raw/rollo.c +++ b/res/raw/rollo.c
@@ -355,6 +355,9 @@ // Bug makes 1.0f alpha fail. color(1.0f, 1.0f, 1.0f, 0.99f); + if (iconCount <= 0) { + return 1; + } int lastIcon = iconCount-1; int page = g_PosPage;