Skip to content

Commit

Permalink
FIX: compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed May 26, 2024
1 parent 8096da8 commit 867a576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blend2d-command-draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -634,10 +634,10 @@ int cmd_draw(RXIFRM *frm, void *reb_ctx) {
blFontGetTextMetrics(&font, &gb, &tm);
debug_print("siz: %f %f %f %f\n", tm.boundingBox.x0, tm.boundingBox.y0, tm.boundingBox.x1, tm.boundingBox.y1);

if (SERIES_WIDE(str)==1) {
blContextFillUtf8TextD(&ctx, &pt, &font, SERIES_DATA(str), SERIES_TAIL(str));
if (BYTE_SIZE(str)) {
blContextFillUtf8TextD(&ctx, &pt, &font, (char*)SERIES_DATA(str), SERIES_TAIL(str));
} else {
blContextFillUtf16TextD(&ctx, &pt, &font, SERIES_DATA(str), SERIES_TAIL(str));
blContextFillUtf16TextD(&ctx, &pt, &font, (uint16_t*)SERIES_DATA(str), SERIES_TAIL(str));
}
blGlyphBufferReset(&gb);

Expand Down

0 comments on commit 867a576

Please sign in to comment.