Skip to content

Commit

Permalink
Squashed 'main/lispBM/' changes from f0c1ec21..decc7d52
Browse files Browse the repository at this point in the history
decc7d52 Merge pull request #23 from r3n33/fix/rotated-text-spacing
fa2a57c2 Fix character spacing when text is rotated

git-subtree-dir: main/lispBM
git-subtree-split: decc7d52220f062fe43dd45652895de177df7b64
  • Loading branch information
vedderb committed Nov 27, 2024
1 parent 3c9b09e commit b7b4d82
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/extensions/display_extensions.c
Original file line number Diff line number Diff line change
Expand Up @@ -2605,8 +2605,15 @@ static lbm_value ext_text(lbm_value *args, lbm_uint argn) {

int ind = 0;
while (txt[ind] != 0) {
img_putc(&img_buf, x + ind * w * incx, y + ind * h * incy,
(uint32_t *)colors, 4, font_data, (uint8_t)txt[ind], up, down);
img_putc(&img_buf,
x + ind * ((up || down) ? h : w) * incx,
y + ind * ((up || down) ? w : h) * incy,
(uint32_t *)colors,
4,
font_data,
(uint8_t)txt[ind],
up,
down);
ind++;
}

Expand Down

0 comments on commit b7b4d82

Please sign in to comment.