[poppler] Branch 'poppler-0.8' - qt4/src

Pino Toscano pino at kemper.freedesktop.org
Sun Aug 3 01:56:35 PDT 2008


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

New commits:
commit 7ba49bcd446c140c14cf08b12a25c745d1ad9dca
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 6f55f18..7dc4e7d 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