X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/2695b1740990eff1443dfe424eeb2bef43a65e3b..707a378282ef7381e6ae925f3e8541e19e609380:/src/motif/glcanvas.cpp

diff --git a/src/motif/glcanvas.cpp b/src/motif/glcanvas.cpp
index 046c5d0c6c..8a84a0ec96 100644
--- a/src/motif/glcanvas.cpp
+++ b/src/motif/glcanvas.cpp
@@ -21,8 +21,15 @@
 #include "wx/glcanvas.h"
 #include "wx/utils.h"
 #include "wx/app.h"
+#include "wx/log.h"
 
+#ifdef __VMS
+# pragma message disable nosimpint
+#endif
 #include <Xm/Xm.h>
+#ifdef __VMS
+# pragma message enable nosimpint
+#endif
 #include "wx/motif/private.h"
 
 #ifdef OLD_MESA
@@ -137,7 +144,7 @@ void wxGLContext::SetColour(const char *colour)
 		if(!XAllocColor((Display*) m_window->GetXDisplay(),
                   (Colormap) wxTheApp->GetMainColormap(m_window->GetXDisplay()),
                   &exact_def)) {
-		    wxDebugMsg("wxGLCanvas: cannot allocate color\n");
+		    wxLogError("wxGLCanvas: cannot allocate color\n");
 		    return;
 		}
 		pix = the_colour->m_pixel = exact_def.pixel;
@@ -239,7 +246,7 @@ bool wxGLCanvas::Create( wxWindow *parent,
 
     // Check for the presence of the GLX extension
     if(!glXQueryExtension(display, NULL, NULL)) {
-	wxDebugMsg("wxGLCanvas: GLX extension is missing\n");
+	wxLogError("wxGLCanvas: GLX extension is missing\n");
 	return false;
     }