kde5: implement getCairoContext

Change-Id: Ib39ca1e1d73ad4dc91c70ac3f4cdd1bdd24c2b29
This commit is contained in:
Katarina Behrens
2017-10-04 21:20:15 +02:00
committed by Thorsten Behrens
parent a8c16e7c42
commit 72c28fb1be
2 changed files with 15 additions and 0 deletions

View File

@@ -383,4 +383,18 @@ SalGraphics* KDE5SalFrame::AcquireGraphics()
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: */

View File

@@ -111,6 +111,7 @@ class KDE5SalFrame : public SalFrame
virtual void Flush() override { return; }
cairo_t* getCairoContext() const;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */