mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-02 11:05:58 +01:00
parent
3caaa483d4
commit
b80c72c7dd
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue