Commits

Trammell Hudson committed 63fbbeb

Rotate to put noon at the bottom

Comments (0)

Files changed (1)

worldmap/src/worldmap.c

 
 static char time_text[8];
 static TextLayer time_layer;
-static const int gmt_offset = -5; // hours from GMT
+static const int gmt_offset = -4; // hours from GMT
 
 /** Called once per minute */
 static void
 	text_layer_set_text(&time_layer, time_text);
 
 	// Adjust hour by GMT offset and reverse angle
-	// Also note that this image is rotated with GMT 
-	// is 180 degrees out from where it should be
+	// Note that this image is has GMT "noon" at the bottom.
 	// (world rotates "backwards" relative to the sun)
 	
 	const int32_t angle = 0
-		- TRIG_MAX_ANGLE/2
-		+ (TRIG_MAX_ANGLE * gmt_offset) / 24
+		- (TRIG_MAX_ANGLE * gmt_offset) / 24
 		- (TRIG_MAX_ANGLE * (ptm->tm_hour + gmt_offset)) / 24
 		- (TRIG_MAX_ANGLE * ptm->tm_min) / (60 * 24)
 		;