mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:18:12 +00:00
SharedGraphics: Move PainterStateSaver out of line.
This commit is contained in:
parent
b5759089d8
commit
a082738f04
2 changed files with 13 additions and 10 deletions
|
@ -565,3 +565,14 @@ void Painter::clear_clip_rect()
|
|||
{
|
||||
state().clip_rect = m_clip_origin;
|
||||
}
|
||||
|
||||
PainterStateSaver::PainterStateSaver(Painter& painter)
|
||||
: m_painter(painter)
|
||||
{
|
||||
m_painter.save();
|
||||
}
|
||||
|
||||
PainterStateSaver::~PainterStateSaver()
|
||||
{
|
||||
m_painter.restore();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue