mirror of
https://github.com/hyprwm/Hyprland
synced 2024-12-23 04:49:48 +01:00
Scale the cairo matrix to fit the monitor dimensions.
This commit is contained in:
parent
f70b57f360
commit
c48336aac3
1 changed files with 2 additions and 0 deletions
|
@ -1171,6 +1171,8 @@ void CHyprOpenGLImpl::createBGTextureForMonitor(CMonitor* pMonitor) {
|
||||||
|
|
||||||
const auto CAIRO = cairo_create(CAIROSURFACE);
|
const auto CAIRO = cairo_create(CAIROSURFACE);
|
||||||
|
|
||||||
|
cairo_scale(CAIRO, textureSize.x / pMonitor->vecTransformedSize.x, textureSize.y / pMonitor->vecTransformedSize.y);
|
||||||
|
|
||||||
if (!*PNOSPLASH)
|
if (!*PNOSPLASH)
|
||||||
renderSplash(CAIRO, CAIROSURFACE);
|
renderSplash(CAIRO, CAIROSURFACE);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue