Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
fleur
firmware
Commits
e287bb4d
Commit
e287bb4d
authored
Aug 21, 2019
by
Jannis Rieger
Browse files
fixed code style
parent
52829e8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/gfx/gfx.c
View file @
e287bb4d
...
...
@@ -87,17 +87,16 @@ void gfx_puts(
Color
bg
)
{
// iterate over the string
while
(
*
str
)
{
while
(
*
str
)
{
// if the current position plus the width of the next character
// would bring us outside of the display ...
if
(
(
x
+
font
->
Width
)
>
r
->
width
)
{
if
(
(
x
+
font
->
Width
)
>
r
->
width
)
{
// ... we move down a line before printing the character
x
=
0
;
y
+=
font
->
Height
;
}
// if the line is outside the display we return
if
(
y
>=
r
->
height
)
if
(
y
>=
r
->
height
)
return
;
// now print the character
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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