From 21d6398241010c3610d04ed3fe7d0a9a7896708c Mon Sep 17 00:00:00 2001 From: halx99 Date: Thu, 5 Dec 2024 23:19:07 +0800 Subject: [PATCH] Fix #2254 --- cmake/Modules/AXLinkHelpers.cmake | 4 ---- templates/cpp/Source/MainScene.cpp | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/cmake/Modules/AXLinkHelpers.cmake b/cmake/Modules/AXLinkHelpers.cmake index f5b524ae507..ae75683e90b 100644 --- a/cmake/Modules/AXLinkHelpers.cmake +++ b/cmake/Modules/AXLinkHelpers.cmake @@ -52,8 +52,6 @@ function(ax_link_cxx_prebuilt APP_NAME AX_ROOT_DIR AX_PREBUILT_DIR) PRIVATE NOUNCRYPT=1 PRIVATE P2T_STATIC_EXPORTS=1 PRIVATE BT_USE_SSE_IN_API=1 - PRIVATE CP_USE_DOUBLES=0 - PRIVATE CP_USE_CGTYPES=0 ) ax_config_pred(${APP_NAME} AX_USE_ALSOFT) @@ -91,7 +89,6 @@ function(ax_link_cxx_prebuilt APP_NAME AX_ROOT_DIR AX_PREBUILT_DIR) PRIVATE ${AX_ROOT_DIR}/3rdparty/freetype/include PRIVATE ${AX_ROOT_DIR}/3rdparty/glfw/include/GLFW PRIVATE ${AX_ROOT_DIR}/3rdparty/box2d/include - PRIVATE ${AX_ROOT_DIR}/3rdparty/chipmunk/include PRIVATE ${AX_ROOT_DIR}/${AX_PREBUILT_DIR}/engine/3rdparty/freetype/include PRIVATE ${AX_ROOT_DIR}/3rdparty/webp/src/webp PRIVATE ${AX_ROOT_DIR}/3rdparty/pugixml @@ -136,7 +133,6 @@ function(ax_link_cxx_prebuilt APP_NAME AX_ROOT_DIR AX_PREBUILT_DIR) set(LIBS axmol box2d - chipmunk freetype webp pugixml diff --git a/templates/cpp/Source/MainScene.cpp b/templates/cpp/Source/MainScene.cpp index 8e318e18243..1028f4d7841 100644 --- a/templates/cpp/Source/MainScene.cpp +++ b/templates/cpp/Source/MainScene.cpp @@ -133,7 +133,7 @@ bool MainScene::init() drawNode->setPosition(Vec2(0, 0)); addChild(drawNode); - drawNode->drawRect(safeArea.origin + Vec2(1, 1), safeArea.origin + safeArea.size, Color4B::BLUE); + drawNode->drawRect(safeArea.origin + Vec2(1, 1), safeArea.origin + safeArea.size, Color::BLUE); } // scheduleUpdate() is required to ensure update(float) is called on every loop