aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/pugl_internal.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-26 23:46:29 +0200
committerDavid Robillard <d@drobilla.net>2019-07-28 19:06:39 +0200
commit6a77f96642b201f614ce7eb67f3b6ec4e1e8c181 (patch)
tree051a02fcd8ffd6ec0a6c6fb8c1331a4a1592d99b /pugl/pugl_internal.h
parent6a3159df3e41cfef6d94ff52f2cf9c5375254243 (diff)
downloadpugl-6a77f96642b201f614ce7eb67f3b6ec4e1e8c181.tar.gz
pugl-6a77f96642b201f614ce7eb67f3b6ec4e1e8c181.tar.bz2
pugl-6a77f96642b201f614ce7eb67f3b6ec4e1e8c181.zip
Make enterContext take a drawing parameter like leaveContext
These need to be symmetric because sometimes different things need to happen in either situation when entering the context as well.
Diffstat (limited to 'pugl/pugl_internal.h')
-rw-r--r--pugl/pugl_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/pugl_internal.h b/pugl/pugl_internal.h
index 57b026f..ac31b65 100644
--- a/pugl/pugl_internal.h
+++ b/pugl/pugl_internal.h
@@ -252,13 +252,13 @@ puglDispatchEvent(PuglView* view, const PuglEvent* event)
case PUGL_CONFIGURE:
view->width = (int)event->configure.width;
view->height = (int)event->configure.height;
- puglEnterContext(view);
+ puglEnterContext(view, false);
view->eventFunc(view, event);
puglLeaveContext(view, false);
break;
case PUGL_EXPOSE:
if (event->expose.count == 0) {
- puglEnterContext(view);
+ puglEnterContext(view, true);
view->eventFunc(view, event);
puglLeaveContext(view, true);
}