From 64b7048c1ced7ffae9ce045fffc743d1fb22f66c Mon Sep 17 00:00:00 2001 From: xfangfang <2553041586@qq.com> Date: Thu, 6 Feb 2025 21:34:19 +0800 Subject: [PATCH] MPVCore: Fix wrong image size at different UI scales --- wiliwili/source/view/mpv_core.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wiliwili/source/view/mpv_core.cpp b/wiliwili/source/view/mpv_core.cpp index f450d345..1b8412c0 100644 --- a/wiliwili/source/view/mpv_core.cpp +++ b/wiliwili/source/view/mpv_core.cpp @@ -794,7 +794,8 @@ void MPVCore::draw(brls::Rect area, float alpha) { #elif defined(BOREALIS_USE_GXM) auto *vg = brls::Application::getNVGContext(); - NVGpaint img = nvgImagePattern(vg, 0, 0, mpv_fbo.w, mpv_fbo.h, 0, nvg_image, alpha); + NVGpaint img = nvgImagePattern(vg, 0, 0, brls::Application::contentWidth, brls::Application::contentHeight, 0, + nvg_image, alpha); nvgBeginPath(vg); nvgRect(vg, area.getMinX(), area.getMinY(), area.getWidth(), area.getHeight()); nvgFillPaint(vg, img);