projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
909bf7e
)
Fix display of Spin Options with negative range
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Sun, 19 Oct 2014 11:16:43 +0000
(13:16 +0200)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Tue, 21 Oct 2014 18:54:32 +0000
(20:54 +0200)
winboard/wsettings.c
patch
|
blob
|
history
diff --git
a/winboard/wsettings.c
b/winboard/wsettings.c
index
215ea18
..
9c4c967
100644
(file)
--- a/
winboard/wsettings.c
+++ b/
winboard/wsettings.c
@@
-575,8
+575,8
@@
void AddOption(int x, int y, Control type, int i)
int extra, num = ES_NUMBER;
\r
\r
switch(type) {
\r
int extra, num = ES_NUMBER;
\r
\r
switch(type) {
\r
-
// case Slider
+100:
\r
-
//
num = 0; // needs text control for accepting negative numbers
\r
+
case Spin
+100:
\r
+
num = 0; // needs text control for accepting negative numbers
\r
case Slider:
\r
case Spin:
\r
AddControl(x, y+1, 95, 9, 0x0082, SS_ENDELLIPSIS | WS_VISIBLE | WS_CHILD, i);
\r
case Slider:
\r
case Spin:
\r
AddControl(x, y+1, 95, 9, 0x0082, SS_ENDELLIPSIS | WS_VISIBLE | WS_CHILD, i);
\r