projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix game-list highight error when filtered (WB)
[xboard.git]
/
winboard
/
wgamelist.c
diff --git
a/winboard/wgamelist.c
b/winboard/wgamelist.c
index
48aa85d
..
80ce9b6
100644
(file)
--- a/
winboard/wgamelist.c
+++ b/
winboard/wgamelist.c
@@
-406,9
+406,15
@@
VOID GameListPopDown(void)
\r
VOID GameListHighlight(int index)
\r
{
\r
\r
VOID GameListHighlight(int index)
\r
{
\r
+ char buf[MSG_SIZ];
\r
+ int i, res = 0;
\r
if (gameListDialog == NULL) return;
\r
if (gameListDialog == NULL) return;
\r
+ for(i=0; res != LB_ERR; i++) {
\r
+ res = SendDlgItemMessage( gameListDialog, OPT_GameListText, LB_GETTEXT, i, (LPARAM)buf );
\r
+ if(index <= atoi( buf )) break;
\r
+ }
\r
SendDlgItemMessage(gameListDialog, OPT_GameListText,
\r
SendDlgItemMessage(gameListDialog, OPT_GameListText,
\r
- LB_SETCURSEL, i
ndex - 1
, 0);
\r
+ LB_SETCURSEL, i, 0);
\r
}
\r
\r
\r
}
\r
\r
\r