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:
parent
f546b3dcb4
commit
61205f5e55
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user