From f0ee5ab8cd298b0ad68acc244999a0f895505531 Mon Sep 17 00:00:00 2001 From: patrick96 Date: Sun, 10 Jan 2021 20:53:29 +0100 Subject: [PATCH] renderer: fix highlight_clickable_areas --- src/components/renderer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/renderer.cpp b/src/components/renderer.cpp index c1efcf20..b8429eb8 100644 --- a/src/components/renderer.cpp +++ b/src/components/renderer.cpp @@ -734,7 +734,7 @@ void renderer::highlight_clickable_areas() { double h = m_rect.height; m_context->save(); - *m_context << CAIRO_OPERATOR_DIFFERENCE << (n % 2 ? 0xFF00FF00 : 0xFFFF0000); + *m_context << CAIRO_OPERATOR_DIFFERENCE << (n % 2 ? rgba{0xFF00FF00} :rgba{0xFFFF0000}); *m_context << cairo::rect{x, y, w, h}; m_context->fill(); m_context->restore();