[poppler] qt4/src

Pino Toscano pino at kemper.freedesktop.org
Sun Aug 3 01:55:40 PDT 2008


 qt4/src/poppler-private.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 901ebc84ff7c0872c3f9f5e6eaf418ba6400fa10
Author: Pino Toscano <pino at kde.org>
Date:   Sun Aug 3 10:54:09 2008 +0200

    [Qt4] Make the paper color setting working as it should.
    
    A BGR colorspace means that colors should be set as blue,green,red, and
    not red,green,blue.

diff --git a/qt4/src/poppler-private.h b/qt4/src/poppler-private.h
index 7b5ab1c..81699d0 100644
--- a/qt4/src/poppler-private.h
+++ b/qt4/src/poppler-private.h
@@ -132,9 +132,9 @@ namespace Poppler {
 			{
 #if defined(HAVE_SPLASH)
 			SplashColor bgColor;
-			bgColor[0] = paperColor.red();
+			bgColor[0] = paperColor.blue();
 			bgColor[1] = paperColor.green();
-			bgColor[2] = paperColor.blue();
+			bgColor[2] = paperColor.red();
 			GBool AA = m_hints & Document::TextAntialiasing ? gTrue : gFalse;
 			SplashOutputDev * splashOutputDev = new SplashOutputDev(splashModeXBGR8, 4, gFalse, bgColor, gTrue, AA);
 			splashOutputDev->setVectorAntialias(m_hints & Document::Antialiasing ? gTrue : gFalse);
@@ -224,9 +224,9 @@ namespace Poppler {
 #if defined(HAVE_SPLASH)
 				SplashOutputDev *splash_output = static_cast<SplashOutputDev *>( m_outputDev );
 				SplashColor bgColor;
-				bgColor[0] = paperColor.red();
+				bgColor[0] = paperColor.blue();
 				bgColor[1] = paperColor.green();
-				bgColor[2] = paperColor.blue();
+				bgColor[2] = paperColor.red();
 				splash_output->setPaperColor(bgColor);
 #endif
 				break;


More information about the poppler mailing list