summaryrefslogtreecommitdiffstats
path: root/modules/text_server_adv
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-08-17 12:29:06 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-08-17 12:29:06 +0200
commit08690d6af5f66ae165881b802a5729b54e5f34b2 (patch)
tree538f61ae2734e0e2e684d70325adf487e77fefd0 /modules/text_server_adv
parent4332a798f95ebfc6109f2b4dad12126e62c73a9c (diff)
parentac9e259d3ed9df6a096d7383299bf544cb4d8ee4 (diff)
downloadredot-engine-08690d6af5f66ae165881b802a5729b54e5f34b2.tar.gz
Merge pull request #80095 from capnm/update_thorvg_0.10.0
Update ThorVG to v0.10.0
Diffstat (limited to 'modules/text_server_adv')
-rw-r--r--modules/text_server_adv/thorvg_svg_in_ot.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/text_server_adv/thorvg_svg_in_ot.cpp b/modules/text_server_adv/thorvg_svg_in_ot.cpp
index 951ca15503..97952a1d96 100644
--- a/modules/text_server_adv/thorvg_svg_in_ot.cpp
+++ b/modules/text_server_adv/thorvg_svg_in_ot.cpp
@@ -256,7 +256,7 @@ FT_Error tvg_svg_in_ot_render(FT_GlyphSlot p_slot, FT_Pointer *p_state) {
}
std::unique_ptr<tvg::SwCanvas> sw_canvas = tvg::SwCanvas::gen();
- res = sw_canvas->target((uint32_t *)p_slot->bitmap.buffer, (int)p_slot->bitmap.width, (int)p_slot->bitmap.width, (int)p_slot->bitmap.rows, tvg::SwCanvas::ARGB8888_STRAIGHT);
+ res = sw_canvas->target((uint32_t *)p_slot->bitmap.buffer, (int)p_slot->bitmap.width, (int)p_slot->bitmap.width, (int)p_slot->bitmap.rows, tvg::SwCanvas::ARGB8888S);
if (res != tvg::Result::Success) {
ERR_FAIL_V_MSG(FT_Err_Invalid_Outline, "Failed to create SVG canvas.");
}