]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/glcanvas.cpp
Added implementations for two cases of wxSystemSettingsNative::GetMetric to
[wxWidgets.git] / src / motif / glcanvas.cpp
index 046c5d0c6c92cfd76cd71eeaa8c306c74f33d5b6..bf6347593a8943a614b149aeef36354493df9044 100644 (file)
 #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"
 
+// DLL options compatibility check:
+#include "wx/build.h"
+WX_CHECK_BUILD_OPTIONS("wxGL")
+
 #ifdef OLD_MESA
 // workaround for bug in Mesa's glx.c
 static int bitcount( unsigned long n )
@@ -137,7 +148,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 +250,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;
     }