1
1
mirror of https://github.com/NixOS/mobile-nixos.git synced 2024-12-04 21:18:28 +03:00

lvgui: Add point_scale

Will be used for fonts
This commit is contained in:
Samuel Dionne-Riel 2021-06-10 20:51:35 -04:00
parent f546b3dcb4
commit 61205f5e55

View File

@ -12,6 +12,11 @@ module LVGUI
(dpi * x/200).to_i
end
def self.point_scale(x)
dpi = LVGL::Hacks.dpi()
(dpi * x/200*4/3).to_i
end
def self.col_padding()
pixel_scale(32)
end