Index: picture.c ================================================================== --- picture.c +++ picture.c @@ -493,10 +493,12 @@ int y0=re?re->y:0; int x1=re?re->x+12:12; int y1=re?re->y+re->h:screen->h; int y; double f; + max-=page; + if(max<0) max=0; switch(ev?ev->type:SDL_VIDEOEXPOSE) { case SDL_MOUSEMOTION: if(ev->motion.xmotion.x>x1 || ev->motion.ymotion.y>=y1) return 0; if(ev->motion.state&SDL_BUTTON(2)) { y=ev->motion.y;