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) {