Commit fce8b9f3 authored by Harald Sitter's avatar Harald Sitter 🎶

curly++ to increase readability and hackability

parent b0d22564
......@@ -208,14 +208,15 @@ fun TextYOffset() {
// window!
local.min_height = Window.GetHeight() + Window.GetY();
if (y + text_height > min_height)
if (y + text_height > min_height) {
y = min_height - text_height;
else {
} else {
y = y + ((min_height - y - text_height) /2);
}
if (y < logo.text.GetY() + logo.text.height + first_line_height/2)
if (y < logo.text.GetY() + logo.text.height + first_line_height/2) {
y = logo.text.GetY() + logo.text.height + first_line_height/2;
}
return y;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment