~ubuntu-branches/ubuntu/lucid/wmmoonclock/lucid

« back to all changes in this revision

Viewing changes to debian/patches/03_add_southern_hemisphere_support.diff

  • Committer: Bazaar Package Importer
  • Author(s): Denis Briand
  • Date: 2009-07-26 10:30:00 UTC
  • Revision ID: james.westby@ubuntu.com-20090726103000-2y5ws6okikxakvfp
Tags: 1.27-28
* Add southern hemisphere support (Closes: #537480).
  Thanks to Alvaro Steiger.
* Bump standards version to 3.8.2.0
* Add quilt patch system.
* Add patches:
  + 01_all_previous_diff.diff
  + 02_update_time.diff
  + 03_add_southern_hemisphere_support.diff
  + 04_fix_hyphen_used_as_minus_sign.diff
* Add debhelper 7 build depends.
* Add debian/compat file.
* Remove trailing whitespaces in changelog.upstream.
* Add an empty watch file (no upstream repository).
* Improve rules file by using more debhelper commands.
* Remove Martin A. Godisch from uploaders field
  Thanks to him to have sponsored wmmoonclock.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
add southern hemisphere support (Closes: #537480).
 
2
Author: Alvaro Steiger <alvaro.steiger@gmail.com>
 
3
Index: wmmoonclock-1.27/Src/wmMoonClock.c
 
4
===================================================================
 
5
--- wmmoonclock-1.27.orig/Src/wmMoonClock.c     2009-07-18 23:26:03.000000000 +0200
 
6
+++ wmmoonclock-1.27/Src/wmMoonClock.c  2009-07-18 23:30:36.000000000 +0200
 
7
@@ -244,6 +244,7 @@
 
8
                nMAX = 1000;
 
9
                ImageNumber = (int)(c.MoonPhase * 60.0 + 0.5);
 
10
                if (ImageNumber > 59) ImageNumber = 0;
 
11
+                       if (Glat < 0) ImageNumber = 59 - ImageNumber;           /* add southern hemisphere support, closes: #537480 */
 
12
                j = ImageNumber/10;
 
13
                i = ImageNumber%10;
 
14
                copyXPMArea(67+58*i, 2+58*j, 54, 54, 5, 5);