From 5a0cc1624529ef74246b8517e88b8ca909df3d97 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Sun, 1 Jan 2012 13:09:35 -0500 Subject: [PATCH] Fixed off-by-one error --- src/net/phoenixinquis/android/juiz/JuizWallpaper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net/phoenixinquis/android/juiz/JuizWallpaper.java b/src/net/phoenixinquis/android/juiz/JuizWallpaper.java index 74283c1..29d6292 100644 --- a/src/net/phoenixinquis/android/juiz/JuizWallpaper.java +++ b/src/net/phoenixinquis/android/juiz/JuizWallpaper.java @@ -158,7 +158,7 @@ public class JuizWallpaper extends WallpaperService { int hour = cal.get(cal.HOUR_OF_DAY); boolean offline = !((hour % 12) > i); - if (hour > 12) offline = !offline; + if (hour >= 12) offline = !offline; int x = (i % 6) * iconWidth; int y = (i / 6) * iconHeight; Rect src = new Rect(x, y, x + iconWidth, y + iconHeight);