mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-08 22:59:57 +03:00
SACT2.SP_TextNewLine: add line spacing
Add line spacing (set by SACT2.SP_SetTextLineSpace).
This commit is contained in:
+1
-1
@@ -542,7 +542,7 @@ int sact_SP_TextNewLine(int sp_no, int size)
|
||||
{
|
||||
struct sact_sprite *sp = sact_get_sprite(sp_no);
|
||||
if (!sp) return 0;
|
||||
sp->text.pos = POINT(sp->text.home.x, sp->text.home.y + size);
|
||||
sp->text.pos = POINT(sp->text.home.x, sp->text.home.y + size + sp->text.line_space);
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user