renderer: fix highlight_clickable_areas

This commit is contained in:
patrick96 2021-01-10 20:53:29 +01:00 committed by Patrick Ziegler
parent 96239597ed
commit f0ee5ab8cd

View File

@ -734,7 +734,7 @@ void renderer::highlight_clickable_areas() {
double h = m_rect.height; double h = m_rect.height;
m_context->save(); 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 << cairo::rect{x, y, w, h};
m_context->fill(); m_context->fill();
m_context->restore(); m_context->restore();