diff --git a/ref/soft/r_draw.c b/ref/soft/r_draw.c index 3f91dc6b..5b3d60c0 100644 --- a/ref/soft/r_draw.c +++ b/ref/soft/r_draw.c @@ -95,7 +95,11 @@ static void R_DrawStretchPicImplementation( int x, int y, int w, int h, int s1, //gEngfuncs.Con_Printf ("pixels is %p\n", pic->pixels[0] ); height = h; - if (y < 0) + + if( y < -h ) // out of display, out of bounds + return; + + if( y < 0 ) { skip = -y; height += y;