From 9b2b9fe39b7c7f28aef3f83c7c75358248fc3434 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 17 Feb 2019 00:52:17 +0100 Subject: [PATCH] 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. --- SharedGraphics/Painter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SharedGraphics/Painter.h b/SharedGraphics/Painter.h index a89c7d0267..9bffea12f5 100644 --- a/SharedGraphics/Painter.h +++ b/SharedGraphics/Painter.h @@ -63,7 +63,7 @@ private: Point m_translation; Rect m_clip_rect; RetainPtr m_target; -#ifdef LIBGUI +#ifdef USERLAND GWindow* m_window { nullptr }; #endif DrawOp m_draw_op { DrawOp::Copy };