Skip to content

Commit

Permalink
v145
Browse files Browse the repository at this point in the history
  • Loading branch information
inanevin committed Jun 11, 2023
1 parent c17c1b1 commit 4430b42
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ add_library(Lina::VG ALIAS ${PROJECT_NAME})
target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_SOURCE_DIR}/include)
target_compile_definitions(${PROJECT_NAME} PUBLIC LINAVG_VERSION_MAJOR=1)
target_compile_definitions(${PROJECT_NAME} PUBLIC LINAVG_VERSION_MINOR=4)
target_compile_definitions(${PROJECT_NAME} PUBLIC LINAVG_VERSION_PATCH=4)
target_compile_definitions(${PROJECT_NAME} PUBLIC LINAVG_VERSION_PATCH=5)

#--------------------------------------------------------------------
# Subdirectories & linking
Expand Down
6 changes: 3 additions & 3 deletions src/Core/Drawer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3213,9 +3213,6 @@ namespace LinaVG
pos.x += (kerning + ch.m_advance.x) * scale + spacing;
pos.y += ch.m_advance.y * scale;

if (w == 0.0f || h == 0.0f)
return;

Vertex v0, v1, v2, v3;

if (isGradient)
Expand Down Expand Up @@ -3263,6 +3260,9 @@ namespace LinaVG
outData->characterInfo.push_back(ci);
}

if (w == 0.0f || h == 0.0f)
return;

buf->PushVertex(v0);
buf->PushVertex(v1);
buf->PushVertex(v2);
Expand Down

0 comments on commit 4430b42

Please sign in to comment.