Commit 4f74ed01 authored by Frederik Gladhorn's avatar Frederik Gladhorn
Browse files

Disable qimageblitz usage

parent d16ac66a
......@@ -21,12 +21,13 @@ find_package(KF5 REQUIRED Archive Bookmarks CoreAddons Config ConfigWidgets DBus
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake/modules)
find_package(QImageBlitz)
set_package_properties("QImageBlitz" PROPERTIES
DESCRIPTION "An image effects library"
URL "http://sourceforge.net/projects/qimageblitz"
TYPE RECOMMENDED
PURPOSE "Required to build Okular.")
# There was no Qt 5 version at the time of porting
#find_package(QImageBlitz)
#set_package_properties("QImageBlitz" PROPERTIES
# DESCRIPTION "An image effects library"
# URL "http://sourceforge.net/projects/qimageblitz"
# TYPE RECOMMENDED
# PURPOSE "Required to build Okular.")
find_package(LibKScreen "1.0.2")
set_package_properties("LibKScreen" PROPERTIES
......
......@@ -18,7 +18,7 @@
#include <kiconloader.h>
#include <kdebug.h>
#include <QApplication>
#include <qimageblitz.h>
// TODO KF5 #include <qimageblitz.h>
// system includes
#include <math.h>
......@@ -351,7 +351,8 @@ void PagePainter::paintCroppedPageOnPainter( QPainter * destPainter, const Okula
break;
case Okular::SettingsCore::EnumRenderMode::Recolor:
// Recolor image using Blitz::flatten with dither:0
Blitz::flatten( backImage, Okular::Settings::recolorForeground(), Okular::Settings::recolorBackground() );
#pragma("KF5: implement RenderMode::Recolor again")
// Blitz::flatten( backImage, Okular::Settings::recolorForeground(), Okular::Settings::recolorBackground() );
break;
case Okular::SettingsCore::EnumRenderMode::BlackWhite:
// Manual Gray and Contrast
......
Supports Markdown
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