From 61364ffc3341f4ee7ff3de0816c4a8e176a4e470 Mon Sep 17 00:00:00 2001 From: greatyingzi <924068818@qq.com> Date: Mon, 28 Nov 2022 20:24:05 +0800 Subject: [PATCH] [chore] CoverImage: unified call method for Device.screen (#9839) Co-authored-by: greatyingzi --- plugins/coverimage.koplugin/main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/coverimage.koplugin/main.lua b/plugins/coverimage.koplugin/main.lua index 41396a150..846a0afc0 100644 --- a/plugins/coverimage.koplugin/main.lua +++ b/plugins/coverimage.koplugin/main.lua @@ -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)