koffice/krita/ui

Adrian Page adrian at pagenet.plus.com
Sun Feb 26 13:42:43 CET 2006


SVN commit 513750 by page:

Fix build on systems without OpenGL.

CCMAIL: zander32 at gmail.com
CCMAIL: kimageshop at kde.org


 M  +8 -0      kis_view.cc  


--- trunk/koffice/krita/ui/kis_view.cc #513749:513750
@@ -1023,6 +1023,7 @@
 
 void KisView::updateOpenGLCanvas(const QRect& imageRect)
 {
+#ifdef HAVE_GL
     KisImageSP img = currentImg();
 
     if (img && m_paintViewEnabled) {
@@ -1032,6 +1033,9 @@
             m_OpenGLImageContext->update(imageRect);
         }
     }
+#else
+    Q_UNUSED(imageRect);
+#endif
 }
 
 void KisView::paintOpenGLView(const QRect& canvasRect)
@@ -1231,11 +1235,15 @@
 
 void KisView::selectionDisplayToggled(bool displaySelection)
 {
+#ifdef HAVE_GL
     if (m_canvas->isOpenGLCanvas()) {
         if (m_OpenGLImageContext) {
             m_OpenGLImageContext->setSelectionDisplayEnabled(displaySelection);
         }
     }
+#else
+    Q_UNUSED(displaySelection);
+#endif
     updateCanvas();
 }
 


More information about the kimageshop mailing list