1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

SharedGraphics: Fix #ifdef mismatch in Painter.

This mistake created an incredible amount of confusion. We would allocate
a slightly too small Painter on the stack and then invoke its constructor,
overwriting whatever came after it on the stack.
This commit is contained in:
Andreas Kling 2019-02-17 00:52:17 +01:00
parent 10d6f9ce31
commit 9b2b9fe39b

View file

@ -63,7 +63,7 @@ private:
Point m_translation;
Rect m_clip_rect;
RetainPtr<GraphicsBitmap> m_target;
#ifdef LIBGUI
#ifdef USERLAND
GWindow* m_window { nullptr };
#endif
DrawOp m_draw_op { DrawOp::Copy };