Skip to content

Commit

Permalink
Fix for fillGradientRect/VLINEAR ignoring y-coords
Browse files Browse the repository at this point in the history
fixes #601
  • Loading branch information
tobozo committed Aug 7, 2024
1 parent 5907849 commit 043f114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lgfx/v1/LGFXBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ namespace lgfx
for( int ys=0;ys<h;ys++ ) {
if( is_vertical ) { // scanline is used as an colors index
setColor(color888(scanline[ys].r, scanline[ys].g, scanline[ys].b));
drawFastHLine( x, ys, w );
drawFastHLine( x, y+ys, w );
} else { // scanline is used as a line buffer
pushImage( x, y+ys, w, 1, scanline );
}
Expand Down

0 comments on commit 043f114

Please sign in to comment.