decouple device from pdfdocument, font & bgr checking

This commit is contained in:
Qingping Hou
2018-10-27 00:34:13 -07:00
committed by Frans de Jonge
parent 9e57e56f95
commit d749591984
6 changed files with 64 additions and 44 deletions

View File

@@ -35,12 +35,6 @@ function HtmlBoxWidget:init()
},
}
end
if Mupdf.bgr == nil then
Mupdf.bgr = false
if Device:hasBGRFrameBuffer() then
Mupdf.bgr = true
end
end
end
function HtmlBoxWidget:setContent(body, css, default_font_size)