diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/libspudec/spu.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/libspudec/spu.c b/src/libspudec/spu.c index 18532018e..3e0d29c28 100644 --- a/src/libspudec/spu.c +++ b/src/libspudec/spu.c @@ -19,7 +19,7 @@ * along with this program; see the file COPYING. If not, write to * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. * -* $Id: spu.c,v 1.7 2001/08/14 20:35:15 richwareham Exp $ +* $Id: spu.c,v 1.8 2001/08/16 22:40:54 f1rmb Exp $ * *****/ @@ -335,13 +335,14 @@ void spuDrawPicture (spu_state_t *state, spu_seq_t* seq, vo_overlay_t *ovl) len = vlc >> 2; /* if len == 0 -> end sequence - fill to end of line */ - if(len != 0) { - spu_put_pixel (ovl, len, color); - } else { + if (len == 0) len = ovl->width - put_x; - spu_put_pixel (ovl, len, color); + + spu_put_pixel (ovl, len, color); + + if (put_x >= ovl->width) { if (spu_next_line (ovl) < 0) - return; + return; } } |