This commit is contained in:
Xinhao Yuan 2019-08-01 14:53:13 -04:00
parent 16fdf8cdd8
commit e03f2bbe08
1 changed files with 2 additions and 3 deletions

View File

@ -98,9 +98,6 @@ local function start(c)
local msg, ext
for i, a in ipairs(regions) do
-- cr:rectangle(a.x - start_x, a.y - start_y, a.width, a.height)
-- cr:clip()
if a.x <= traverse_x and traverse_x < a.x + a.width and
a.y <= traverse_y and traverse_y < a.y + a.height then
@ -154,6 +151,8 @@ local function start(c)
end
end
cr:rectangle(a.x - start_x, a.y - start_y, a.width, a.height)
cr:clip()
-- cr:set_source(fill_color)
-- cr:rectangle(a.x, a.y, a.width, a.height)
-- cr:fill()