Skip to content

Commit

Permalink
[eListboxContent] (#3257)
Browse files Browse the repository at this point in the history
* try to fix gradient issue
  • Loading branch information
jbleyel committed Feb 24, 2024
1 parent e70027c commit 7392656
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gui/elistboxcontent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -922,12 +922,14 @@ static void clearRegionHelper(gPainter &painter, eListboxStyle *local_style, con
{
if (local_style->is_set.background_color)
painter.setBackgroundColor(local_style->m_background_color);
/*
if (local_style->m_gradient_set[0] && cursorValid)
{
painter.setGradient(local_style->m_gradient_colors[0], local_style->m_gradient_direction[0], local_style->m_gradient_alphablend[0]);
painter.drawRectangle(eRect(offset, size));
return;
}
*/
if (local_style->m_background && cursorValid)
{
int x = offset.x();
Expand Down Expand Up @@ -964,12 +966,14 @@ static void clearRegionSelectedHelper(gPainter &painter, eListboxStyle *local_st
painter.blit(local_style->m_background, ePoint(x, y), eRect(), local_style->is_set.transparent_background ? gPainter::BT_ALPHATEST : 0);
return;
}
/*
else if (local_style->m_gradient_set[1] && cursorValid)
{
painter.setGradient(local_style->m_gradient_colors[1], local_style->m_gradient_direction[1], local_style->m_gradient_alphablend[1]);
painter.drawRectangle(eRect(offset, size));
return;
}
*/
}
if (clear)
painter.clear();
Expand Down

0 comments on commit 7392656

Please sign in to comment.