more window stuff

This commit is contained in:
nobody
2015-12-17 20:30:00 -05:00
parent e2602348df
commit 8dd46e2bbc
6 changed files with 68 additions and 25 deletions

View File

@@ -277,7 +277,7 @@ This color is used to indicate the selected range of text.
local startX, endX = self.startX or 0, self.endX or 0
local x, y, w, h = self:getRectangle(true, true)
local width, height = endX - startX, h
local font = self.fontData
local font = self:getFont()
local color = self.color or { 0, 0, 0, 255 }
local textTop = math.floor(y + (h - font:getLineHeight()) / 2)