tags 269046 patch
thanks

The attached patch works for me. It delays calling init_cards until score_widget has been managed. It also increases score_widget's XmNmarginHeight to prevent it being overwritten.

P.S. Motif 2.3.4 has now landed in unstable. If this patch works for you, would you could consider celebrating the closure of this 8.5-year-old bug by transitioning from lesstif2-dev to libmotif-dev in the same upload? :)

--- a/debian/patches/20-fix-paint-glitches.patch
+++ b/debian/patches/20-fix-paint-glitches.patch
@@ -0,0 +1,31 @@
+Description: Fix paint glitches when moving cards.
+             Delay calling init_cards until score_widget has been managed.
+             We also need to increase score_widget's marginHeight to prevent it
+             being overwritten.
+Author: Graham Inggs <gra...@nerve.org.za>
+Last-Update: 2013-06-19
+--- a/xsol.c
++++ b/xsol.c
+@@ -186,6 +186,7 @@
+ 
+    n = 0;
+    XtSetArg(args[n], XmNalignment, XmALIGNMENT_END); n++;
++   XtSetArg(args[n], XmNmarginHeight, 9); n++;
+    score_widget = XmCreateLabel(mainwindow, "", args, n);
+    XtAppAddTimeOut(app_context, 1000, (XtTimerCallbackProc) timerCB, (XtPointer) app_context);
+    XtManageChild(mainwindow);
+@@ -193,12 +194,13 @@
+ 
+    display = XtDisplay(drawa);
+    gc = XCreateGC(display , XtWindow(drawa), 0, (XGCValues *) NULL);
+-   init_cards();
+ 
+    XmMainWindowSetAreas(mainwindow, menubar, (Widget) NULL, (Widget) NULL, 
+        (Widget) NULL, drawa);
+    XtVaSetValues(mainwindow, XmNmessageWindow, score_widget, NULL);
+    XtManageChild(score_widget);
++   init_cards();
++
+    XtAppMainLoop(app_context);
+    return 0;
+ }
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 10-remove-alignment-option.patch
+20-fix-paint-glitches.patch

Reply via email to