mirror of
https://invent.kde.org/graphics/okular
synced 2024-08-25 02:45:38 +00:00
KImageEffect::flatten -> Blitz::flatten
svn path=/trunk/KDE/kdegraphics/okular/; revision=709615
This commit is contained in:
parent
0b76db026f
commit
8d0b9b2832
|
@ -144,7 +144,7 @@ kde4_add_ui_files(okularpart_SRCS
|
||||||
|
|
||||||
kde4_add_plugin(okularpart WITH_PREFIX ${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})
|
install(TARGETS okularpart DESTINATION ${PLUGIN_INSTALL_DIR})
|
||||||
|
|
||||||
|
|
|
@ -15,10 +15,10 @@
|
||||||
#include <qpalette.h>
|
#include <qpalette.h>
|
||||||
#include <qpixmap.h>
|
#include <qpixmap.h>
|
||||||
#include <qvarlengtharray.h>
|
#include <qvarlengtharray.h>
|
||||||
#include <kimageeffect.h>
|
|
||||||
#include <kiconloader.h>
|
#include <kiconloader.h>
|
||||||
#include <kdebug.h>
|
#include <kdebug.h>
|
||||||
#include <QApplication>
|
#include <QApplication>
|
||||||
|
#include <qimageblitz/qimageblitz.h>
|
||||||
|
|
||||||
// system includes
|
// system includes
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
@ -228,8 +228,8 @@ void PagePainter::paintPageOnPainter( QPainter * destPainter, const Okular::Page
|
||||||
backImage.invertPixels(QImage::InvertRgb);
|
backImage.invertPixels(QImage::InvertRgb);
|
||||||
break;
|
break;
|
||||||
case Okular::Settings::EnumRenderMode::Recolor:
|
case Okular::Settings::EnumRenderMode::Recolor:
|
||||||
// Recolor image using KImageEffect::flatten with dither:0
|
// Recolor image using Blitz::flatten with dither:0
|
||||||
KImageEffect::flatten( backImage, Okular::Settings::recolorForeground(), Okular::Settings::recolorBackground() );
|
Blitz::flatten( backImage, Okular::Settings::recolorForeground(), Okular::Settings::recolorBackground() );
|
||||||
break;
|
break;
|
||||||
case Okular::Settings::EnumRenderMode::BlackWhite:
|
case Okular::Settings::EnumRenderMode::BlackWhite:
|
||||||
// Manual Gray and Contrast
|
// Manual Gray and Contrast
|
||||||
|
|
Loading…
Reference in a new issue