summaryrefslogtreecommitdiffstats
path: root/scribus/scpainter.cpp
diff options
context:
space:
mode:
authormalex <malex@11d20701-8431-0410-a711-e3c959e3b870>2012-02-10 03:20:54 +0000
committermalex <malex@11d20701-8431-0410-a711-e3c959e3b870>2012-02-10 03:20:54 +0000
commit0a3229cf1860de8f59f5f59a3d0b3c563ea13df8 (patch)
tree738a12992d2ec9794035adab2195d4a9425aa27f /scribus/scpainter.cpp
parentcee06e59c897fd7b66365c838248b394e047098e (diff)
downloadscribus-0a3229cf1860de8f59f5f59a3d0b3c563ea13df8.tar.gz
scribus-0a3229cf1860de8f59f5f59a3d0b3c563ea13df8.tar.xz
scribus-0a3229cf1860de8f59f5f59a3d0b3c563ea13df8.zip
Ubuntu patch from 9850 for building on armel arch
git-svn-id: svn://scribus.net/branches/Version14x/Scribus@17287 11d20701-8431-0410-a711-e3c959e3b870
Diffstat (limited to 'scribus/scpainter.cpp')
-rw-r--r--scribus/scpainter.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scribus/scpainter.cpp b/scribus/scpainter.cpp
index 5b81a09..77498da 100644
--- a/scribus/scpainter.cpp
+++ b/scribus/scpainter.cpp
@@ -941,7 +941,7 @@ void ScPainter::drawVPath( int mode )
cairo_set_fill_rule (m_cr, CAIRO_FILL_RULE_WINDING);
if (fillMode == 1)
{
- double r, g, b;
+ qreal r, g, b;
m_fill.getRgbF(&r, &g, &b);
cairo_set_source_rgba( m_cr, r, g, b, fill_trans );
// if (fill_trans != 1.0)
@@ -979,7 +979,7 @@ void ScPainter::drawVPath( int mode )
vneu = 255 - ((255 - v) * shad / 100);
qStopColor.setHsv(h, sneu, vneu);
double a = colorStops[offset]->opacity;
- double r, g, b;
+ qreal r, g, b;
qStopColor.getRgbF(&r, &g, &b);
cairo_pattern_add_color_stop_rgba (pat, rampPoint, r, g, b, a);
lastPoint = rampPoint;
@@ -1024,7 +1024,7 @@ void ScPainter::drawVPath( int mode )
cairo_set_dash( m_cr, m_array.data(), m_array.count(), m_offset);
else
cairo_set_dash( m_cr, NULL, 0, 0 );
- double r, g, b;
+ qreal r, g, b;
m_stroke.getRgbF(&r, &g, &b);
cairo_set_source_rgba( m_cr, r, g, b, stroke_trans );
// if (stroke_trans != 1.0)
@@ -1348,7 +1348,7 @@ void ScPainter::drawText(QRectF area, QString text)
double y;
double ww = 0;
double hh = 0;
- double r, g, b;
+ qreal r, g, b;
cairo_select_font_face(m_cr, m_font.family().toLatin1(), CAIRO_FONT_SLANT_NORMAL, CAIRO_FONT_WEIGHT_BOLD);
cairo_set_font_size(m_cr, m_font.pointSizeF());
cairo_font_extents (m_cr, &extentsF);