use wxStockCursor (as documented and as already implemented in wxMotif) instead of a plain 'int'

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@55837 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Francesco Montorsi
2008-09-24 19:40:13 +00:00
parent 54590cb078
commit d4f392ea20
20 changed files with 28 additions and 31 deletions

View File

@@ -677,7 +677,7 @@ void Window::SetFont(Font &font) {
}
void Window::SetCursor(Cursor curs) {
int cursorId;
wxStockCursor cursorId;
switch (curs) {
case cursorText:
@@ -708,16 +708,13 @@ void Window::SetCursor(Cursor curs) {
cursorId = wxCURSOR_ARROW;
break;
}
#ifdef __WXMOTIF__
wxCursor wc = wxStockCursor(cursorId) ;
#else
wxCursor wc = wxCursor(cursorId) ;
#endif
if(curs != cursorLast)
{
GETWIN(id)->SetCursor(wc);
cursorLast = curs;
}
wxCursor wc = wxCursor(cursorId);
if(curs != cursorLast)
{
GETWIN(id)->SetCursor(wc);
cursorLast = curs;
}
}