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)