Commit b1fe69c4 authored by Mikhail Efremov's avatar Mikhail Efremov

plymouth theme: Use scaling for logo.

parent a58e1a1b
......@@ -104,9 +104,12 @@ Plymouth.SetDisplayNormalFunction(display_normal_callback);
Plymouth.SetDisplayPasswordFunction(display_password_callback);
#----------------------------------------- Logo --------------------------------
slinux_logo.image = Image ("slinux.png");
slinux_logo.raw = Image ("slinux.png");
scale_factor = Window.GetHeight() / slinux_logo.raw.GetHeight() * 0.5;
slinux_logo.image = imgscale (slinux_logo.raw, scale_factor);
slinux_logo.sprite = Sprite (slinux_logo.image);
slinux_logo.sprite.SetOpacity (0);
slinux_logo.x = Window.GetX() + Window.GetWidth() / 2 - slinux_logo.image.GetWidth() / 2;
slinux_logo.y = Window.GetY() + Window.GetHeight() / 2 - slinux_logo.image.GetHeight() / 2;
slinux_logo.sprite.SetPosition (slinux_logo.x, slinux_logo.y, 0);
......
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