From 3ca08cff9a92afa4d4d56dfdf8ad708fc5744558 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 8 Sep 2019 12:24:50 +0200 Subject: [PATCH] hook in generateCanvas --- pattern2.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pattern2.cpp b/pattern2.cpp index a6a07904..20572374 100644 --- a/pattern2.cpp +++ b/pattern2.cpp @@ -1523,7 +1523,12 @@ EX namespace patterns { return ep.parse(); } + EX hookset *hooks_generate_canvas; + EX int generateCanvas(cell *c) { + + int i = callhandlers(-1, hooks_generate_canvas, c); + if(i != -1) return i; switch(whichCanvas) { #if CAP_CRYSTAL case 'K':