Skip to content

Commit

Permalink
MPVCore: Fix wrong image size at different UI scales
Browse files Browse the repository at this point in the history
  • Loading branch information
xfangfang committed Feb 6, 2025
1 parent d8b7227 commit 64b7048
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wiliwili/source/view/mpv_core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 64b7048

Please sign in to comment.