1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-11 09:04:01 +03:00

boot/splash: Load SVG using new resize workaround

This commit is contained in:
Samuel Dionne-Riel 2021-06-12 19:14:52 -04:00
parent 7bc16d7996
commit fceb420383

View File

@ -57,10 +57,10 @@ class UI
if @page.get_height > @page.get_width
# 80% of the width
LVGL::Hacks::LVNanoSVG.resize_next_width((@page.get_width * 0.8).to_i)
file = "#{file}?width=#{(@page.get_width * 0.8).to_i}"
else
# 15% of the height
LVGL::Hacks::LVNanoSVG.resize_next_height((@page.get_height * 0.15).to_i)
file = "#{file}?height=#{(@page.get_height * 0.15).to_i}"
end
@logo = LVGL::LVImage.new(@page)