File tgif-4.2.5-redraw.patch of Package tgif

--- setup.c.original	2021-01-06 19:22:14.355767142 +0100
+++ setup.c	2021-01-06 19:22:39.392109074 +0100
@@ -19,6 +19,7 @@
  */
 
 #define _INCLUDE_FROM_SETUP_C_
+#define UNUSED(p) ( (void) (p) )
 
 #include "tgifdefs.h"
 #include "cmdids.h"
@@ -89,6 +90,7 @@
 #include "z_intrf.e"
 
 #include "tgificon.xbm"
+#include "xbm/redraw.xbm"
 
 #define DEF_VSBAR_H 64
 #define DEF_HSBAR_W 128
@@ -111,8 +113,8 @@
 #define ICON_WINDOW_H 64
 #define MENUBAR_WINDOW_W (TITLE_WINDOW_W)
 #define MENUBAR_WINDOW_H 20
-#define USER_REDRAW_WINDOW_W 44
-#define USER_REDRAW_WINDOW_H 20
+#define USER_REDRAW_WINDOW_W redraw_width+6
+#define USER_REDRAW_WINDOW_H redraw_height+4
 #define STATUS_WINDOW_W (TITLE_WINDOW_W-USER_REDRAW_WINDOW_W-(BRDR_W<<1))
 #define STATUS_WINDOW_H 20
 #define MODE_WINDOW_W (CHOICE_IMAGE_W)
@@ -122,7 +124,6 @@
 
 int	debugNoPointerGrab=FALSE;
 int	debugCopyPaste=FALSE;
-
 unsigned int	mainWinW = 0;
 unsigned int	mainWinH = 0;
 int	vSBarH = VSBAR_H;
@@ -427,6 +428,7 @@
    CalcMenubarWindowHeight();
    CalcStatusSubWinGeom();
    SetChatWindowGeom();
+   UNUSED((void)redraw_bits);
 }
 
 void ComputeMainWinXY(MainWinX, MainWinY)
openSUSE Build Service is sponsored by