aboutsummaryrefslogtreecommitdiffstats
path: root/Tremolo/floor1.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tremolo/floor1.c')
-rw-r--r--Tremolo/floor1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Tremolo/floor1.c b/Tremolo/floor1.c
index a2a035b..4a4937d 100644
--- a/Tremolo/floor1.c
+++ b/Tremolo/floor1.c
@@ -232,8 +232,9 @@ static void render_line(int n,int x0,int x1,int y0,int y1,ogg_int32_t *d){
if(n>x1)n=x1;
n -= x0;
- if (n <= 0)
+ if (n <= 0 || y0 < 0 || y0 > 255 || y1 < 0 || y1 > 255) {
return;
+ }
dy=y1-y0;
adx=x1-x0;
ady=abs(dy);