Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
branding-etersoft-ximper
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
branding-etersoft-ximper
Commits
4d989e4d
Commit
4d989e4d
authored
Nov 16, 2010
by
Anton V. Boyarshinov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
non 4:3 or 16:9 resolutions support
parent
e20902d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
theme.script
components/bootsplash/theme.script
+9
-3
No files found.
components/bootsplash/theme.script
View file @
4d989e4d
...
...
@@ -5,19 +5,25 @@ fun imgscale( image, scale )
image.Scale( image.GetWidth() * scale, image.GetHeight() * scale );
}
fun imgscale2( image, scaleX, scaleY )
{
image.Scale( image.GetWidth() * scaleX, image.GetHeight() * scaleY );
}
# background
if( Window.GetWidth()/Window.GetHeight() > 1.5 )
{
logo.raw = Image("background16x9.png");
logo.image = imgscale( logo.raw, Window.GetWidth()/logo.raw.GetWidth() );
}
else
{
logo.raw = Image("background4x3.png");
logo.image = imgscale( logo.raw, Window.GetWidth()/logo.raw.GetWidth() );
}
logo.sprite = Sprite(logo.image);
logo.image = imgscale2( logo.raw,
Window.GetWidth()/logo.raw.GetWidth(),
Window.GetHeight()/logo.raw.GetHeight());
logo.sprite = Sprite(logo.image);
logo.sprite.SetPosition(0, 0, 0);
#----------------------------------------- Dialogue --------------------------------
...
...
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