Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
Breeze Plymouth visual style
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Plasma
Breeze Plymouth visual style
Commits
e864b867
Commit
e864b867
authored
Nov 14, 2017
by
Harald Sitter
🐬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix var naming
minimal height was in fact maximal y (i.e. bottom of window)
parent
f96ba99b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
breeze/breeze.script.cmake
breeze/breeze.script.cmake
+5
-6
No files found.
breeze/breeze.script.cmake
View file @
e864b867
...
...
@@ -231,25 +231,24 @@ global.logger = Logger();
fun
TextYOffset
()
{
local.y;
local.text_height;
local.m
in_height
;
local.m
ax_y
;
// Put the 1st line below the logo.
y = spin.
GetY
()
+ spin.
GetHeight
()
;
text_height = first_line_height * 7.5;
// FIXME: why minimum?
// The maximum Y we may end at, if we exceed this we'll try to scoot up
// a bit. This includes the Window offset itself as we position ourselves
// relative to the Spinner which is relative to the Logo which is relative
// to the center of the window TAKING INTO ACCOUNT the y offset of the
// window!
local.m
in_height
= Window.
GetHeight
()
+ Window.
GetY
()
;
local.m
ax_y
= Window.
GetHeight
()
+ Window.
GetY
()
;
if
(
y + text_height > m
in_height
)
{
y = m
in_height
- text_height;
if
(
y + text_height > m
ax_y
)
{
y = m
ax_y
- text_height;
} else {
y = y +
((
m
in_height
- y - text_height
)
/2
)
;
y = y +
((
m
ax_y
- y - text_height
)
/2
)
;
}
// This basically undoes whatever went on above, to a degree...
...
...
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