- g_textAtom = XInternAtom( (Display*) wxGetDisplay(), "STRING", FALSE );
- if (!g_pngAtom)
- g_pngAtom = XInternAtom( (Display*) wxGetDisplay(), "image/png", FALSE );
+ g_textAtom = XInternAtom( wxGlobalDisplay(), "STRING", False );
+ if (!g_bitmapAtom)
+ g_bitmapAtom = XInternAtom( wxGlobalDisplay(), "PIXMAP", False );