123
authortanya <tanya@tanin.oblgaz>
Fri, 9 Apr 2010 08:23:31 +0000 (11:23 +0300)
committertanya <tanya@tanin.oblgaz>
Fri, 9 Apr 2010 08:23:31 +0000 (11:23 +0300)
applet/src/livewp-home-widget.c
applet/src/livewp-rules.c

index c16fef4..ae4baae 100644 (file)
@@ -603,7 +603,7 @@ init_scene1(AWallpaperPlugin *desktop_plugin)
 void 
 get_sun_screen_pos(double alt, double azm, gint * x, gint * y)
 {
-    gint y0 = 400;// - уровень горизонта
+    gint y0 = 365;// - уровень горизонта
     gint o_width = 128,
          o_height = 128; 
     *x = (int)(azm * 800) - 64;
@@ -732,6 +732,7 @@ fprintf(stderr, "timer daytime=%d\n", daytime);
    while (tmp != NULL){
        actor = tmp->data;
        if (now >= actor->time_start_animation  
+           && actor->time_start_animation > 0
            /* && now - actor->time_start_animation <= actor->duration_animation*/){
             pfunc = actor->func_change;
             if (pfunc) 
index 796b813..7daab8b 100644 (file)
@@ -53,6 +53,12 @@ void get_coord(double * lat, double * lon)
     *lon = 30.166666;
 }
 
+double
+get_max_sun_alt(double lon, double lat, int year, int month, int day)
+{
+    
+}
+
 void get_sun_pos(double * alt, double * azm)
 {
     int year, month, day, hour, min, zone;