[poppler] poppler/poppler: ArthurOutputDev.cc,1.11,1.12

Albert Astals Cid aacid at kemper.freedesktop.org
Mon Nov 13 11:16:46 PST 2006


Update of /cvs/poppler/poppler/poppler
In directory kemper:/tmp/cvs-serv4492/poppler

Modified Files:
	ArthurOutputDev.cc 
Log Message:
        * poppler/ArthurOutputDev.cc: Small fix to get colors right


Index: ArthurOutputDev.cc
===================================================================
RCS file: /cvs/poppler/poppler/poppler/ArthurOutputDev.cc,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- ArthurOutputDev.cc	13 Feb 2006 23:04:54 -0000	1.11
+++ ArthurOutputDev.cc	13 Nov 2006 19:16:44 -0000	1.12
@@ -210,7 +210,7 @@
   GfxRGB rgb;
   QColor brushColour = m_currentBrush.color();
   state->getFillRGB(&rgb);
-  brushColour.setRgbF(rgb.r, rgb.g, rgb.b, brushColour.alphaF());
+  brushColour.setRgbF(colToDbl(rgb.r), colToDbl(rgb.g), colToDbl(rgb.b), brushColour.alphaF());
   m_currentBrush.setColor(brushColour);
 }
 
@@ -219,7 +219,7 @@
   GfxRGB rgb;
   QColor penColour = m_currentPen.color();
   state->getStrokeRGB(&rgb);
-  penColour.setRgbF(rgb.r, rgb.g, rgb.b, penColour.alphaF());
+  penColour.setRgbF(colToDbl(rgb.r), colToDbl(rgb.g), colToDbl(rgb.b), penColour.alphaF());
   m_currentPen.setColor(penColour);
   m_painter->setPen(m_currentPen);
 }
@@ -526,11 +526,11 @@
       GfxRGB rgb;
       QColor brushColour = m_currentBrush.color();
       state->getFillRGB(&rgb);
-      brushColour.setRgbF(rgb.r, rgb.g, rgb.b, state->getFillOpacity());
+      brushColour.setRgbF(colToDbl(rgb.r), colToDbl(rgb.g), colToDbl(rgb.b), state->getFillOpacity());
       m_painter->setBrush(brushColour);
       QColor penColour = m_currentPen.color();
       state->getStrokeRGB(&rgb);
-      penColour.setRgbF(rgb.r, rgb.g, rgb.b, state->getStrokeOpacity());
+      penColour.setRgbF(colToDbl(rgb.r), colToDbl(rgb.g), colToDbl(rgb.b), state->getStrokeOpacity());
       m_painter->setPen(penColour);
       m_painter->drawPath( qPath );
       m_painter->restore();



More information about the poppler mailing list