From 27226ed28a9ca61be4a89ec5e3f71e54b2389210 Mon Sep 17 00:00:00 2001 From: NishiOwO Date: Sat, 29 Nov 2025 13:14:08 +0000 Subject: [PATCH] MwNdrawHandler git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@826 b9cfdab3-6d41-4d17-bbe4-086880011989 --- include/Mw/StringDefs.h | 1 + milsko.xml | 1 + src/core.c | 1 + 3 files changed, 3 insertions(+) diff --git a/include/Mw/StringDefs.h b/include/Mw/StringDefs.h index 6935a57..02cf80d 100644 --- a/include/Mw/StringDefs.h +++ b/include/Mw/StringDefs.h @@ -60,5 +60,6 @@ #define MwNfileChosenHandler "CfileChosen" /* char* */ #define MwNdirectoryChosenHandler MwNfileChosenHandler #define MwNcolorChosenHandler "CcolorChosen" /* MwRGB* */ +#define MwNdrawHandler "Cdraw" /* NULL */ #endif diff --git a/milsko.xml b/milsko.xml index 94a3647..2ab9d4f 100644 --- a/milsko.xml +++ b/milsko.xml @@ -99,6 +99,7 @@ + diff --git a/src/core.c b/src/core.c index 85c7b5c..546b452 100644 --- a/src/core.c +++ b/src/core.c @@ -11,6 +11,7 @@ static void lldrawhandler(MwLL handle, void* data) { h->bgcolor = NULL; MwDispatch(h, draw); if(h->draw_inject != NULL) h->draw_inject(h); + MwDispatchUserHandler(h, MwNdrawHandler, NULL); } static void lluphandler(MwLL handle, void* data) {