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

boot/error: Load SVG using new resize workaround

This commit is contained in:
Samuel Dionne-Riel 2021-06-12 19:01:13 -04:00
parent 6514fd82f3
commit 87ac4c8813

View File

@ -113,9 +113,8 @@ class UI
file = "sad.svg" if File.exist?("sad.svg")
return unless file
LVGL::Hacks::LVNanoSVG.resize_next_height(@title_bar.get_height - 2 * padding)
@sad_phone = LVGL::LVImage.new(@screen)
@sad_phone.set_src(file)
@sad_phone.set_src("#{file}?height=#{@title_bar.get_height - 2 * padding}")
@sad_phone.set_pos(2 * padding, padding)
end