Fixed off-by-one error

This commit is contained in:
Correl Roush 2012-01-01 13:09:35 -05:00
parent 0bc90c532b
commit 5a0cc16245
1 changed files with 1 additions and 1 deletions

View File

@ -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);