mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[chore] CoverImage: unified call method for Device.screen (#9839)
Co-authored-by: greatyingzi <greatyingzi@github.com>
This commit is contained in:
@@ -118,7 +118,7 @@ function CoverImage:createCoverImage(doc_settings)
|
||||
return
|
||||
end
|
||||
|
||||
local s_w, s_h = Device.screen:getWidth(), Device.screen:getHeight()
|
||||
local s_w, s_h = Screen:getWidth(), Screen:getHeight()
|
||||
local i_w, i_h = cover_image:getWidth(), cover_image:getHeight()
|
||||
local scale_factor = math.min(s_w / i_w, s_h / i_h)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user