Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
Lutro
Commits
e3174c67
Commit
e3174c67
authored
Feb 02, 2021
by
Jean-Andre Santoni
Browse files
Implement new line
parent
97594eb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
painter.c
View file @
e3174c67
...
...
@@ -392,11 +392,17 @@ void pntr_print(painter_t *p, int x, int y, const char *text, int limit)
drect
.
x
+=
srect
.
width
+
1
;
if
(
limit
>
0
&&
drect
.
x
-
x
>
limit
)
{
if
(
limit
>
0
&&
drect
.
x
-
x
>
limit
)
{
drect
.
x
=
x
;
drect
.
y
+=
atlas
->
height
;
}
if
(
c
==
'\n'
)
{
drect
.
x
=
x
;
drect
.
y
+=
atlas
->
height
;
}
drect
.
y
+=
atlas
->
height
;
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment