diff options
author | Cezary M. Kruk <c.kruk@bigfoot.com> | 2010-10-17 09:27:11 -0400 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-10-17 20:16:51 -0500 |
commit | ffb689d93795f1ead3a6bee7dcd99c70fe659771 (patch) | |
tree | 96e847fb75f2321f833ab328f0c4e38ac709a57a /desktop/wmMoonClock/SouthernHemisphere.patch | |
parent | 17436376c311a63205c2574e8aa7478f8a7a7810 (diff) | |
download | slackbuilds-ffb689d93795f1ead3a6bee7dcd99c70fe659771.tar.gz |
desktop/wmMoonClock: Patched to fix southern hemisphere display.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'desktop/wmMoonClock/SouthernHemisphere.patch')
-rw-r--r-- | desktop/wmMoonClock/SouthernHemisphere.patch | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/wmMoonClock/SouthernHemisphere.patch b/desktop/wmMoonClock/SouthernHemisphere.patch new file mode 100644 index 0000000000..a6d5ec58ab --- /dev/null +++ b/desktop/wmMoonClock/SouthernHemisphere.patch @@ -0,0 +1,10 @@ +--- wmMoonClock-1.27/Src/wmMoonClock.c 1999-06-07 11:27:18.000000000 -0300 ++++ wmMoonClock-1.??/Src/wmMoonClock.c 2004-12-15 18:59:50.714764064 -0200 +@@ -244,6 +244,7 @@ + nMAX = 1000; + ImageNumber = (int)(c.MoonPhase * 60.0 + 0.5); + if (ImageNumber > 59) ImageNumber = 0; ++ if (Glat < 0) ImageNumber = 59 - ImageNumber; + j = ImageNumber/10; + i = ImageNumber%10; + copyXPMArea(67+58*i, 2+58*j, 54, 54, 5, 5); |