|
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 |
}
|