Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/games/CaribbeanStud/files/patch-Table.cpp
16462 views
1
--- ./Table.cpp.orig 2013-10-29 15:12:13.000000000 -0200
2
+++ ./Table.cpp 2013-10-29 15:12:13.000000000 -0200
3
@@ -306,7 +306,7 @@
4
XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_POSITION); ac++;
5
XtSetArg(al[ac], XmNbottomPosition, 30); ac++;
6
XtSetArg(al[ac], XmNalignment, XmALIGNMENT_CENTER); ac++;
7
- for(j=0; j < rv.players; j++)
8
+ for(int j=0; j < rv.players; j++)
9
{
10
XtSetArg(al[ac], XmNtopWidget, YouHaveLabel[j]);
11
XtSetArg(al[ac+1], XmNleftPosition, j*100/rv.players);
12
@@ -324,7 +324,7 @@
13
XtSetArg(al[ac], XmNbottomAttachment, XmATTACH_POSITION); ac++;
14
XtSetArg(al[ac], XmNbottomPosition, 40); ac++;
15
XtSetArg(al[ac], XmNalignment, XmALIGNMENT_CENTER); ac++;
16
- for(j=0; j < rv.players; j++)
17
+ for(int j=0; j < rv.players; j++)
18
{
19
XtSetArg(al[ac], XmNtopWidget, YouHaveLabelValue[j]);
20
XtSetArg(al[ac+1], XmNleftPosition, j*100/rv.players);
21
@@ -465,7 +465,7 @@
22
XtManageChild(HelpRulesScrolledText);
23
24
25
- for(j=0; j< rv.players; j++)
26
+ for(int j=0; j< rv.players; j++)
27
{
28
ac = 0;
29
children[ac++] = YouHaveLabel[j];
30
@@ -534,7 +534,7 @@
31
Arg args[5];
32
33
i = 0;
34
- s = XmStringCreate(str, XmSTRING_DEFAULT_CHARSET);
35
+ s = XmStringCreate((char*)str, XmSTRING_DEFAULT_CHARSET);
36
XtSetArg(args[i], XmNmessageString, s); i++;
37
XtSetValues(ExceptionDialog, args, i);
38
XmStringFree(s);
39
@@ -586,7 +586,7 @@
40
try{
41
#ifdef DEBUG
42
cout << "Calling DealerDrawingAreaCB" << endl;
43
-#endif DEBUG
44
+#endif // DEBUG
45
if (call_data->window) {
46
XEvent event;
47
Table * table = (Table*) client_data;
48
@@ -615,7 +615,7 @@
49
try{
50
#ifdef DEBUG
51
cout << "Calling PlayerDrawingAreaCB" << endl;
52
-#endif DEBUG
53
+#endif // DEBUG
54
55
if (call_data->window) {
56
XEvent event;
57
@@ -648,7 +648,7 @@
58
{
59
#ifdef DEBUG
60
cout << "Calling AnteScrollCB" << endl;
61
-#endif DEBUG
62
+#endif // DEBUG
63
int i;
64
char str[80];
65
Arg args[5];
66
@@ -686,7 +686,7 @@
67
{
68
#ifdef DEBUG
69
cout << "Calling DealCB" << endl;
70
-#endif DEBUG
71
+#endif // DEBUG
72
Arg args[5];
73
char str[80];
74
XmScaleCallbackStruct data;
75
@@ -763,7 +763,7 @@
76
try{
77
#ifdef DEBUG
78
cout << "Calling BetCB" << endl;
79
-#endif DEBUG
80
+#endif // DEBUG
81
char str[80];
82
Arg args[5];
83
84
@@ -792,7 +792,7 @@
85
try{
86
#ifdef DEBUG
87
cout << "Calling FoldCB" << endl;
88
-#endif DEBUG
89
+#endif // DEBUG
90
91
char str[80];
92
Arg args[5];
93
@@ -823,7 +823,7 @@
94
try{
95
#ifdef DEBUG
96
cout << "Calling Table::PayTime" << endl;
97
-#endif DEBUG
98
+#endif // DEBUG
99
100
char str[80];
101
Arg args[5];
102
103