set menu font size according to screen dpi

This commit is contained in:
chrox
2013-02-03 05:16:19 +08:00
parent ddfe5ca3a9
commit 25bcbfa53a
5 changed files with 18 additions and 14 deletions

View File

@@ -99,7 +99,7 @@ KoptOptions = {
name_text = "Contrast",
name_align_right = 0.2,
item_text = {"lightest", "lighter", "default", "darker", "darkest"},
item_font_size = math.floor(18*Screen:getWidth()/600),
item_font_size = math.floor(18*Screen:getDPI()/167),
item_align_center = 0.8,
values = {2.0, 1.5, 1.0, 0.5, 0.2},
default_value = 1.0,