From 59a2e3769810e97358e4f55f6c9b33730089412a Mon Sep 17 00:00:00 2001
From: Jonathan Wilkes <jon.w.wilkes@gmail.com>
Date: Sun, 24 Apr 2016 14:34:43 -0400
Subject: [PATCH] add comment about the weird default image caching mechanism

---
 externals/moonlib/image.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/externals/moonlib/image.c b/externals/moonlib/image.c
index c64b2fa7d..c069849de 100644
--- a/externals/moonlib/image.c
+++ b/externals/moonlib/image.c
@@ -406,5 +406,9 @@ void image_setup(void)
 #if PD_MINOR_VERSION >= 37
     class_setsavefn(image_class, &image_save);
 #endif
+    /* cache a default image (question mark) for case where no image argument
+       is given. The key is ("x%lxx%lxdefault", image_class, image_class),
+       to protect against namespace clashes with the complicated interface
+       of moonlib/image */
     gui_vmess("gui_load_default_image", "sx", "dummy", image_class);
 }
-- 
GitLab