File ibp-0.21-xdisp-makeClockContext-gc.patch of Package ibp

diff -ru ibp-0.21.orig/xdisp.c ibp-0.21/xdisp.c
--- ibp-0.21.orig/xdisp.c	2025-02-17 22:02:00.962224441 +0100
+++ ibp-0.21/xdisp.c	2025-02-17 22:02:41.862221798 +0100
@@ -354,7 +354,7 @@
 double                          jtime();
 double                          gmst();
 struct sunclock *               makeClockContext();
-void                            fixGeometry();
+void                            fixGeometry(struct Geom *g, int w, int h);
 void                            makeGCs(Window w, Pixmap p);
 void                            moveterm(short *wtab, short *noon, short *otab, short *onoon, int xdots, int ydots, Pixmap pixmap);
 void                            sunpos(double jd, short apparent, double *ra, double *dec, double *rv, double *slong);
@@ -356,7 +356,7 @@
 char *                          salloc();
 void                            showImage(struct sunclock *s);
 void                            updimage(struct sunclock *s);
-void                            projillum();
+void                            projillum(short *wtab, int xdots, int ydots, double dec);
 
 int
 makeClockContext(wid, ht, win, pix, gc)
@@ -468,7 +468,7 @@
 }
 
 void
-fixGeometry(g, w, h)
+fixGeometry(struct Geom *g, int w, int h)
     struct Geom *g;
     int w, h;
 {
@@ -480,7 +480,7 @@
 }
 
 void
-makeGCs(w, p)
+makeGCs(Window w, Pixmap p)
     Window w;
     Pixmap p;
 {
@@ -595,7 +595,7 @@
 }
 
 void
-updimage(s)
+updimage(struct sunclock *s)
     struct sunclock *s;
 {
     double sunra, sundec, sunrv, sunlong, jt, gt;
@@ -584,7 +584,7 @@
 }
 
 void
-showImage(s)
+showImage(struct sunclock *s)
     struct sunclock *s;
 {
     if (s) {
@@ -551,7 +551,7 @@
 }
 
 struct sunclock *
-makeClockContext(wid, ht, win, pix, gc)
+makeClockContext(int wid, int ht, Window win, Pixmap pix, int gc)
     int wid;
     int ht;
     Window win;
@@ -622,7 +622,7 @@
     XEvent ev;
     XEvent event;
     struct sunclock *s;
-    double jt = jtime(ct);
+    double jt = jtime();
     double sunra, sundec, sunrv, sunlong;
     Bool ret;
 
@@ -623,8 +623,8 @@
 
     jt = jtime(ct);
     sunpos(jt, False, &sunra, &sundec, &sunrv, &sunlong);
-    gt = gmst(jt);
+    gt = gmst();
 
     if (s) {
         projillum(s->s_wtab, s->s_width, s->s_height, sundec);
-        moveterm(s->s_wtab1, xl, s->s_wtab, s->s_noon, s->s_width, s->s_height, Mappix);
+        moveterm();
     }
 }
 
 void
-projillum(wtab, xdots, ydots, dec)
+projillum(short *wtab, int xdots, int ydots, double dec)
     short *wtab;
     int xdots;
     int ydots;
@@ -770,7 +770,7 @@
 }
 
 void
-moveterm(wtab, noon, otab, onoon, xdots, ydots, pixmap)
+moveterm(short *wtab, short *noon, short *otab, short *onoon, int xdots, int ydots, Pixmap pixmap)
     short *wtab;
     short *noon;
     short *otab;
openSUSE Build Service is sponsored by