Skip to content

Commit

Permalink
improve for ios
Browse files Browse the repository at this point in the history
  • Loading branch information
xianjimli committed Nov 8, 2024
1 parent fa33cc6 commit 6decfd6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 3rd/nanovg_plus/base/nanovg_plus.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ void nvgp_destroy(nvgp_context_t* ctx) {
}
}

static nvgp_clear_path_cache(nvgp_path_cache_t* cache) {
static void nvgp_clear_path_cache(nvgp_path_cache_t* cache) {
cache->nverts = 0;
NVGP_MEMSET(cache->bounds, 0x0, sizeof(cache->bounds));
nvgp_darray_clear(&cache->paths);
Expand Down
7 changes: 5 additions & 2 deletions scripts/awtk_mobile_common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@ set(AWTK_COMMON_FLAGS "${AWTK_COMMON_FLAGS} -DWITH_GPU_GL ")
set(AWTK_COMMON_FLAGS "${AWTK_COMMON_FLAGS} -DHAS_PTHREAD -DHAS_GET_TIME_US64=1 ")
set(AWTK_COMMON_FLAGS "${AWTK_COMMON_FLAGS} -DWITH_DATA_READER_WRITER=1 ")

set(AWTK_VGCANVAS_GLES2_FLAGS "-DWITH_GPU_GLES2 -DWITH_GPU_GL -DWITH_NANOVG_PLUS_GPU -DNVGP_GLES2 ")
set(AWTK_VGCANVAS_GLES3_FLAGS "-DWITH_GPU_GLES3 -DWITH_GPU_GL -DWITH_NANOVG_PLUS_GPU -DNVGP_GLES3 ")
set(AWTK_VGCANVAS_NANOVG_PLUS_GLES2_FLAGS "-DWITH_GPU_GLES2 -DWITH_GPU_GL -DWITH_NANOVG_PLUS_GPU -DNVGP_GLES2 ")
set(AWTK_VGCANVAS_NANOVG_PLUS_GLES3_FLAGS "-DWITH_GPU_GLES3 -DWITH_GPU_GL -DWITH_NANOVG_PLUS_GPU -DNVGP_GLES3 ")

set(AWTK_VGCANVAS_NANOVG_GLES2_FLAGS "-DWITH_GPU_GLES2 -DWITH_GPU_GL -DWITH_NANOVG_GPU -DWITH_NANOVG_GLES2 ")
set(AWTK_VGCANVAS_NANOVG_GLES3_FLAGS "-DWITH_GPU_GLES3 -DWITH_GPU_GL -DWITH_NANOVG_GPU -DWITH_NANOVG_GLES3 ")

file(GLOB AWTK_BASE_SOURCE_FILES
${AWTK_3RD_PATH}/libunibreak/*.c
Expand Down

0 comments on commit 6decfd6

Please sign in to comment.