Commit 8d0b9b28 authored by Albert Astals Cid's avatar Albert Astals Cid

KImageEffect::flatten -> Blitz::flatten

svn path=/trunk/KDE/kdegraphics/okular/; revision=709615
parent 0b76db02
......@@ -144,7 +144,7 @@ kde4_add_ui_files(okularpart_SRCS
kde4_add_plugin(okularpart WITH_PREFIX ${okularpart_SRCS})
target_link_libraries(okularpart okularcore ${KDE4_KPARTS_LIBS} ${KDE4_KNEWSTUFF2_LIBS} ${MATH_LIB})
target_link_libraries(okularpart okularcore ${KDE4_KPARTS_LIBS} ${KDE4_KNEWSTUFF2_LIBS} ${MATH_LIB} ${BLITZ_LIBRARIES})
install(TARGETS okularpart DESTINATION ${PLUGIN_INSTALL_DIR})
......
......@@ -15,10 +15,10 @@
#include <qpalette.h>
#include <qpixmap.h>
#include <qvarlengtharray.h>
#include <kimageeffect.h>
#include <kiconloader.h>
#include <kdebug.h>
#include <QApplication>
#include <qimageblitz/qimageblitz.h>
// system includes
#include <math.h>
......@@ -228,8 +228,8 @@ void PagePainter::paintPageOnPainter( QPainter * destPainter, const Okular::Page
backImage.invertPixels(QImage::InvertRgb);
break;
case Okular::Settings::EnumRenderMode::Recolor:
// Recolor image using KImageEffect::flatten with dither:0
KImageEffect::flatten( backImage, Okular::Settings::recolorForeground(), Okular::Settings::recolorBackground() );
// Recolor image using Blitz::flatten with dither:0
Blitz::flatten( backImage, Okular::Settings::recolorForeground(), Okular::Settings::recolorBackground() );
break;
case Okular::Settings::EnumRenderMode::BlackWhite:
// Manual Gray and Contrast
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment