auto adaptation for much smaller screen

This commit is contained in:
chrox
2014-05-28 20:05:38 +08:00
parent 449445d95d
commit 9f4f5fa451
4 changed files with 48 additions and 27 deletions

View File

@@ -9,6 +9,7 @@ local LineWidget = Widget:new{
}
function LineWidget:paintTo(bb, x, y)
if self.style == "none" then return end
if self.style == "dashed" then
for i = 0, self.dimen.w - 20, 20 do
bb:paintRect(x + i, y,