Kaydet (Commit) 72c28fb1 authored tarafından Katarina Behrens's avatar Katarina Behrens Kaydeden (comit) Thorsten Behrens

kde5: implement getCairoContext

Change-Id: Ib39ca1e1d73ad4dc91c70ac3f4cdd1bdd24c2b29
üst a8c16e7c
...@@ -383,4 +383,18 @@ SalGraphics* KDE5SalFrame::AcquireGraphics() ...@@ -383,4 +383,18 @@ SalGraphics* KDE5SalFrame::AcquireGraphics()
return nullptr; return nullptr;
} }
cairo_t* KDE5SalFrame::getCairoContext() const
{
for( int i = 0; i < nMaxGraphics; i++ )
{
if( ! m_aGraphics[i].bInUse )
{
cairo_t* cr = cairo_create( m_aGraphics[i].pSurface );
assert(cr);
return cr;
}
}
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -111,6 +111,7 @@ class KDE5SalFrame : public SalFrame ...@@ -111,6 +111,7 @@ class KDE5SalFrame : public SalFrame
virtual void Flush() override { return; } virtual void Flush() override { return; }
cairo_t* getCairoContext() const;
}; };
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
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