mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
desktop/wmMoonClock: Patched to fix southern hemisphere display.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
17436376c3
commit
ffb689d937
5 changed files with 18 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
|||
wmMoonClock is Window Maker moon phase dockable application
|
||||
|
||||
wmMoonClock displays the current phase of the moon. Clicking on
|
||||
the icon brings up different displays - there are five in all.
|
||||
wmMoonClock displays the current phase of the moon. Clicking on the
|
||||
icon brings up different displays - there are five in all. Patched
|
||||
version displays correct results for both hemispheres.
|
||||
|
|
10
desktop/wmMoonClock/SouthernHemisphere.patch
Normal file
10
desktop/wmMoonClock/SouthernHemisphere.patch
Normal file
|
@ -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);
|
|
@ -9,8 +9,8 @@
|
|||
wmMoonClock: wmMoonClock (Window Maker moon phase dockable application)
|
||||
wmMoonClock:
|
||||
wmMoonClock: wmMoonClock displays the current phase of the moon. Clicking on the
|
||||
wmMoonClock: icon brings up different displays -- there are 5 in all.
|
||||
wmMoonClock:
|
||||
wmMoonClock: icon brings up different displays -- there are 5 in all. Patched
|
||||
wmMoonClock: version displays correct results for both hemispheres.
|
||||
wmMoonClock:
|
||||
wmMoonClock:
|
||||
wmMoonClock:
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
PRGNAM=wmMoonClock
|
||||
VERSION=${VERSION:-1.27}
|
||||
BUILD=${BUILD:-1}
|
||||
BUILD=${BUILD:-2}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
|
@ -46,6 +46,7 @@ mkdir -p $TMP $PKG $OUTPUT
|
|||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
patch -p0 < $CWD/SouthernHemisphere.patch
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
|
|
|
@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
|
|||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Cezary M. Kruk"
|
||||
EMAIL="c.kruk@bigfoot.com"
|
||||
APPROVED="rworkman"
|
||||
APPROVED="dsomero"
|
||||
|
|
Loading…
Reference in a new issue