1
Fork 0
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:
Andreas Kling 2019-04-16 01:01:03 +02:00
parent b5759089d8
commit a082738f04
2 changed files with 13 additions and 10 deletions

View file

@ -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();
}