I wrote a quick fix that turns the sun and moon path around in case the user's location is in the southern hemisphere (I live there at the moment and sun and moon travel from right to left). I'm not 100% sure if I got the offsets right, though. Since the author's email address doesn't work anymore, here's the patch:
--- src20/gkrellsun.c 2009-09-25 17:55:19.000000000 +1200
+++ src20/gkrellsun.c 2009-09-25 17:56:17.000000000 +1200
@@ -597,6 +597,11 @@
gint image_number = moon_image_number(sun->data.MoonPhase);
double alt = sun->data.h_moon;
int x = baseX + SUN_WIDTH - MOON_SM_WIDTH - SUN_INNER_XOFS;
+ if (options.latitude < 0)
+ {
+ x = SUN_WIDTH - x;
+ }
+
int y = 0;
I wrote a quick fix that turns the sun and moon path around in case the user's location is in the southern hemisphere (I live there at the moment and sun and moon travel from right to left). I'm not 100% sure if I got the offsets right, though. Since the author's email address doesn't work anymore, here's the patch:
--- src20/gkrellsun.c 2009-09-25 17:55:19.000000000 +1200
+++ src20/gkrellsun.c 2009-09-25 17:56:17.000000000 +1200
@@ -597,6 +597,11 @@
gint image_number = moon_image_number(sun->data.MoonPhase);
double alt = sun->data.h_moon;
int x = baseX + SUN_WIDTH - MOON_SM_WIDTH - SUN_INNER_XOFS;
+ if (options.latitude < 0)
+ {
+ x = SUN_WIDTH - x;
+ }
+
int y = 0;
gkrellm_draw_decal_pixmap(panel, moon_sm, MOON_SM_INVISIBLE);
@@ -863,6 +868,11 @@
/* Calculate plot pos */
pos_x = (int) (SUN_INNER_WIDTH * percentOfDay(&sununit, sununit.data.LST));
+ if (options.latitude < 0)
+ {
+ pos_x = SUN_INNER_WIDTH - pos_x;
+ }
+
pos_y = computeY(pos_x, altitudeAtNoon(&sununit));
image_x_offset = pos_x + baseX + SUN_INNER_XOFS - STAR_XOFS;
Just save that as gkrellsun.patch and do
cd gkrellsun-1.0.0
patch -p0 <gkrellsun.patch