diff options
| -rw-r--r-- | common/plymouth/mga.script | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/common/plymouth/mga.script b/common/plymouth/mga.script index 32a4374..7297433 100644 --- a/common/plymouth/mga.script +++ b/common/plymouth/mga.script @@ -50,14 +50,19 @@ else { # for now we just take the image as it is - no up or down scaling # scale_factor = 1; -background.image = background.original_image.Scale(Window.GetMaxWidth() , Window.GetMaxHeight()); - background.sprite = SpriteNew(); -background.sprite.SetImage(background.image); -background.sprite.SetX(Window.GetMaxWidth() / 2 - background.image.GetWidth() / 2); # Place in the centre -background.sprite.SetY(Window.GetMaxHeight() / 2 - background.image.GetHeight() / 2); -background.sprite.SetZ(-10000); # Place right at the back +fun display_hotplug_callback () +{ + background.image = background.original_image.Scale(Window.GetMaxWidth() , Window.GetMaxHeight()); + background.sprite.SetImage(background.image); + background.sprite.SetX(Window.GetMaxWidth() / 2 - background.image.GetWidth() / 2); # Place in the centre + background.sprite.SetY(Window.GetMaxHeight() / 2 - background.image.GetHeight() / 2); + background.sprite.SetZ(-10000); # Place right at the back +} +Plymouth.SetDisplayHotplugFunction (display_hotplug_callback); + +display_hotplug_callback(); sprite_prompt = SpriteNew(); @@ -242,4 +247,3 @@ fun quit_callback () } Plymouth.SetQuitFunction(quit_callback); - |
