Codebase list xsol / 5b833ab
Fix paint glitches when moving cards. Mònica Ramírez Arceda 10 years ago
3 changed file(s) with 36 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
33 * debian/control: replace lesstif lib with motif lib.
44 * debian/patches/20-fix-spelling-mistake.patch: correct a spelling mistake
55 in the main window title. Thanks to Graham Inggs <graham@nerve.org.za>!
6 * debian/patches/30-fix-paint-glitches.patch: fix paint glitches when
7 moving cards. Thanks to Graham Inggs <graham@nerve.org.za>!
8 (Closes: #269046)
69
710 -- Mònica Ramírez Arceda <monica@debian.org> Fri, 21 Jun 2013 08:58:38 +0200
811
0 Description: Fix paint glitches when moving cards.
1 Delay calling init_cards until score_widget has been managed.
2 We also specify a name when creating score_widget (for some
3 reason this causes it to be drawn with the correct height).
4 Author: Graham Inggs <graham@nerve.org.za>
5 Last-Update: 2013-06-23
6
7 --- a/xsol.c
8 +++ b/xsol.c
9 @@ -186,19 +186,20 @@
10
11 n = 0;
12 XtSetArg(args[n], XmNalignment, XmALIGNMENT_END); n++;
13 - score_widget = XmCreateLabel(mainwindow, "", args, n);
14 + score_widget = XmCreateLabel(mainwindow, "score_widget", args, n);
15 XtAppAddTimeOut(app_context, 1000, (XtTimerCallbackProc) timerCB, (XtPointer) app_context);
16 XtManageChild(mainwindow);
17 XtRealizeWidget(parent);
18
19 display = XtDisplay(drawa);
20 gc = XCreateGC(display , XtWindow(drawa), 0, (XGCValues *) NULL);
21 - init_cards();
22
23 XmMainWindowSetAreas(mainwindow, menubar, (Widget) NULL, (Widget) NULL,
24 (Widget) NULL, drawa);
25 XtVaSetValues(mainwindow, XmNmessageWindow, score_widget, NULL);
26 XtManageChild(score_widget);
27 + init_cards();
28 +
29 XtAppMainLoop(app_context);
30 return 0;
31 }
00 10-remove-alignment-option.patch
11 20-fix-spelling-mistake.patch
2 30-fix-paint-glitches.patch