Mercurial > dwindows
diff win/dw.c @ 294:144a94011265
If key code is extended pass 0 as the character parameter. Also fixed an
errantly missing typecast.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 25 Mar 2003 23:49:59 +0000 |
parents | 651b70046c6a |
children | aac3ab26d636 |
line wrap: on
line diff
--- a/win/dw.c Tue Mar 25 23:44:57 2003 +0000 +++ b/win/dw.c Tue Mar 25 23:49:59 2003 +0000 @@ -1419,7 +1419,7 @@ if(mp2 & (1 << 29)) special |= KC_ALT; - result = keypressfunc(tmp->window, (char)mp1, mp1, special, tmp->data); + result = keypressfunc(tmp->window, mp1 > 255 ? 0 : (char)mp1, mp1, special, tmp->data); tmp = NULL; } } @@ -5938,7 +5938,7 @@ if(TreeView_GetItem(handle, &tvi)) ptrs = (void **)tvi.lParam; - _dw_tree_delete_recursive(handle, item); + _dw_tree_delete_recursive(handle, (HTREEITEM)item); TreeView_DeleteItem(handle, (HTREEITEM)item); if(ptrs) free(ptrs);