// Motif version of the libs but the X protocol
// version!
Display *display = wxGlobalDisplay();
- info.versionMajor = ProtocolVersion (display);
- info.versionMinor = ProtocolRevision (display);
+ if (display)
+ {
+ info.versionMajor = ProtocolVersion (display);
+ info.versionMinor = ProtocolRevision (display);
+ }
info.os = wxMOTIF_X;
return info;
}
#if !wxCHECK_LESSTIF() || wxCHECK_LESSTIF_VERSION( 0, 93 )
Widget w = (Widget)widget;
XtVaSetValues( w,
- wxFont::GetFontTag(), font.GetFontType( XtDisplay(w) ),
+ wxFont::GetFontTag(), font.GetFontTypeC( XtDisplay(w) ),
NULL );
#endif