wxX11:
Lots of wxBitmap et al work. Adapted wxIcon, wxCursor to this. Split wxApp init things up so that the X11 display is available sooner. Changed initial display code accordingly. Corrected wxDC::DrawBitmap. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14170 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -430,11 +430,10 @@ bool wxWindowX11::SetCursor(const wxCursor& cursor)
|
||||
else
|
||||
cursor2 = wxSTANDARD_CURSOR;
|
||||
|
||||
WXDisplay *dpy = GetXDisplay();
|
||||
WXCursor x_cursor = cursor2->GetXCursor(dpy);
|
||||
WXCursor x_cursor = cursor2->GetCursor();
|
||||
|
||||
Window win = (Window) GetMainWindow();
|
||||
XDefineCursor((Display*) dpy, win, (Cursor) x_cursor);
|
||||
XDefineCursor((Display*) wxGlobalDisplay(), win, (Cursor) x_cursor);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user