mirror of
https://git.planet-casio.com/Lephenixnoir/gint.git
synced 2025-07-08 21:37:34 +02:00
topti: spacing bug fix on fxcg50
Fixes a bug where spaces were not being rendered.
This commit is contained in:
parent
b3cbb0a43f
commit
62a49a543e
1 changed files with 3 additions and 2 deletions
|
@ -83,10 +83,11 @@ void topti_render(int x, int y, char const *str, size_t size, font_t const *f,
|
||||||
|
|
||||||
/* Draw the space if background is opaque */
|
/* Draw the space if background is opaque */
|
||||||
int prop_space = (c == ' ' && f->prop) ? 5 : 0;
|
int prop_space = (c == ' ' && f->prop) ? 5 : 0;
|
||||||
if((active_space && bg >= 0) || prop_space)
|
if(active_space || prop_space)
|
||||||
{
|
{
|
||||||
active_space += prop_space;
|
active_space += prop_space;
|
||||||
drect(x, y, x + active_space - 1, y + height - 1, bg);
|
if(bg >= 0) drect(x, y, x + active_space - 1,
|
||||||
|
y + height - 1, bg);
|
||||||
}
|
}
|
||||||
x += active_space;
|
x += active_space;
|
||||||
if(prop_space) { active_space = space; continue; }
|
if(prop_space) { active_space = space; continue; }
|
||||||
|
|
Loading…
Add table
Reference in a new issue