mirror of
https://invent.kde.org/graphics/okular
synced 2024-07-16 10:17:04 +00:00
Disable qimageblitz usage
This commit is contained in:
parent
d16ac66ab3
commit
4f74ed01cf
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue