mirror of
https://github.com/hyprwm/Hyprland.git
synced 2024-09-11 13:25:42 +03:00
parent
3caaa483d4
commit
b80c72c7dd
@ -238,6 +238,9 @@ CTitleTex::~CTitleTex() {
|
||||
|
||||
void renderGradientTo(CTexture& tex, const CColor& grad) {
|
||||
|
||||
if (!g_pCompositor->m_pLastMonitor)
|
||||
return;
|
||||
|
||||
const Vector2D& bufferSize = g_pCompositor->m_pLastMonitor->vecPixelSize;
|
||||
|
||||
const auto CAIROSURFACE = cairo_image_surface_create(CAIRO_FORMAT_ARGB32, bufferSize.x, bufferSize.y);
|
||||
|
Loading…
Reference in New Issue
Block a user