Kaydet (Commit) 3dc8907d authored tarafından Caolán McNamara's avatar Caolán McNamara

we always have cairo and top down devices now

Change-Id: I0eb3083bf402e86f95206e619e5da2e76aa627a8
üst b639fe60
...@@ -184,14 +184,7 @@ bool SvpSalGraphics::drawAlphaRect(long nX, long nY, long nWidth, long nHeight, ...@@ -184,14 +184,7 @@ bool SvpSalGraphics::drawAlphaRect(long nX, long nY, long nWidth, long nHeight,
} }
cairo_t* cr = getCairoContext(); cairo_t* cr = getCairoContext();
if (!cr) assert(cr && m_aDevice->isTopDown());
return bRet;
if (!m_aDevice->isTopDown())
{
cairo_scale(cr, 1, -1.0);
cairo_translate(cr, 0.0, -m_aDevice->getSize().getY());
}
clipRegion(cr); clipRegion(cr);
...@@ -739,14 +732,7 @@ bool SvpSalGraphics::drawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPoly, d ...@@ -739,14 +732,7 @@ bool SvpSalGraphics::drawPolyPolygon(const basegfx::B2DPolyPolygon& rPolyPoly, d
} }
cairo_t* cr = getCairoContext(); cairo_t* cr = getCairoContext();
if (!cr) assert(cr && m_aDevice->isTopDown());
return false;
if (!m_aDevice->isTopDown())
{
cairo_scale(cr, 1, -1.0);
cairo_translate(cr, 0.0, -m_aDevice->getSize().getY());
}
clipRegion(cr); clipRegion(cr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment