[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-kimageshop
Subject: koffice/krita/ui
From: Adrian Page <adrian () pagenet ! plus ! com>
Date: 2006-02-26 12:42:43
Message-ID: 1140957763.477329.627.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 513750 by page:
Fix build on systems without OpenGL.
CCMAIL: zander32@gmail.com
CCMAIL: kimageshop@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();
}
_______________________________________________
kimageshop mailing list
kimageshop@kde.org
https://mail.kde.org/mailman/listinfo/kimageshop
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic