summaryrefslogtreecommitdiff
path: root/gfx
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-30 03:23:26 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-30 03:23:26 -0300
commitccb43979d970bc7ee26a4128e1e5b3882008ec63 (patch)
tree22c3525b697d45243103c4dfc9c9bc6a67ac0f3e /gfx
parentf0ce9a98e636ba687b7b1fdab463a4033355b69a (diff)
downloadeeshow-ccb43979d970bc7ee26a4128e1e5b3882008ec63.tar.gz
eeshow-ccb43979d970bc7ee26a4128e1e5b3882008ec63.tar.bz2
eeshow-ccb43979d970bc7ee26a4128e1e5b3882008ec63.zip
gfx/cro.c (cro_img): save and restore old cc_extra->record.user
Else, pin types won't be drawn until this information gets refreshed. The whole construct is a vile hack. Should do better.
Diffstat (limited to 'gfx')
-rw-r--r--gfx/cro.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gfx/cro.c b/gfx/cro.c
index 421fd9c..bd7b2ee 100644
--- a/gfx/cro.c
+++ b/gfx/cro.c
@@ -851,8 +851,11 @@ uint32_t *cro_img(struct cro_ctx *cc, struct cro_ctx *cc_extra,
setup_font(cc);
if (cc_extra) {
+ void *old = cc_extra->record.user;
+
cc_extra->record.user = cc->record.user; /* @@@ eww ! */
record_replay(&cc_extra->record);
+ cc_extra->record.user = old;
}
record_replay(&cc->record);