kde5: implement getCairoContext
Change-Id: Ib39ca1e1d73ad4dc91c70ac3f4cdd1bdd24c2b29
This commit is contained in:
committed by
Thorsten Behrens
parent
a8c16e7c42
commit
72c28fb1be
@@ -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: */
|
||||
|
@@ -111,6 +111,7 @@ class KDE5SalFrame : public SalFrame
|
||||
|
||||
virtual void Flush() override { return; }
|
||||
|
||||
cairo_t* getCairoContext() const;
|
||||
};
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
Reference in New Issue
Block a user