Skip to content

Commit

Permalink
Bugfix: Bottom transparent shadow changes were registered in wrong row
Browse files Browse the repository at this point in the history
  • Loading branch information
gansm committed Oct 7, 2023
1 parent 9c24c4c commit e419874
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2023-10-07 Markus Gans <guru.mail@muenster.de>
* Bugfix: Bottom transparent shadow changes were registered in wrong row

2023-10-03 Markus Gans <guru.mail@muenster.de>
* Eliminate undefined behavior on exit

Expand Down
2 changes: 1 addition & 1 deletion final/fwidget_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ void drawTransparentShadow (FWidget* w)
area_pos += shadow_width;
}

for (std::size_t y{1}; y <= shadow_height; y++) // Draw bottom shadow
for (std::size_t y{height}; y < height + shadow_height; y++) // Draw bottom shadow
{
area_changes[y].xmin = 0;
area_changes[y].xmax = width + shadow_width - 1;
Expand Down

0 comments on commit e419874

Please sign in to comment.