From 6f51e91788f02c9d95aede6704f02471a30dbbfe Mon Sep 17 00:00:00 2001 From: WildEgo Date: Sat, 1 Jun 2024 19:16:09 +0100 Subject: [PATCH] add: Clip Mask and Mouse Wheel Top Window aliases. --- src/UserInterface/PythonApplicationModule.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/UserInterface/PythonApplicationModule.cpp b/src/UserInterface/PythonApplicationModule.cpp index 2962bbd1..6ce8d2e0 100644 --- a/src/UserInterface/PythonApplicationModule.cpp +++ b/src/UserInterface/PythonApplicationModule.cpp @@ -1568,15 +1568,19 @@ void initapp() #endif #if defined(__BL_CLIP_MASK__) - PyModule_AddIntConstant(poModule, "__BL_CLIP_MASK__", true); + PyModule_AddIntConstant(poModule, "__BL_CLIP_MASK__", 1); + PyModule_AddIntConstant(poModule, "ENABLE_CLIP_MASK", 1); #else - PyModule_AddIntConstant(poModule, "__BL_CLIP_MASK__", false); + PyModule_AddIntConstant(poModule, "__BL_CLIP_MASK__", 0); + PyModule_AddIntConstant(poModule, "ENABLE_CLIP_MASK", 0); #endif #if defined(__BL_MOUSE_WHEEL_TOP_WINDOW__) - PyModule_AddIntConstant(poModule, "__BL_MOUSE_WHEEL_TOP_WINDOW__", true); + PyModule_AddIntConstant(poModule, "__BL_MOUSE_WHEEL_TOP_WINDOW__", 1); + PyModule_AddIntConstant(poModule, "ENABLE_MOUSE_WHEEL_TOP_WINDOW", 1); #else - PyModule_AddIntConstant(poModule, "__BL_MOUSE_WHEEL_TOP_WINDOW__", false); + PyModule_AddIntConstant(poModule, "__BL_MOUSE_WHEEL_TOP_WINDOW__", 0); + PyModule_AddIntConstant(poModule, "ENABLE_MOUSE_WHEEL_TOP_WINDOW", 0); #endif #if defined(ENABLE_CONQUEROR_LEVEL)