X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_sprit.c;h=53cfc6912db8f211018553f3a0b433adc366c593;hb=8b19e2264d3bafb0fbe65519ea22ac23ca04ef6f;hp=e32e9f96764c9f524d52740e66da1ca708631ea5;hpb=cdb255713796ffb83b3bc2676e079871c4b47731;p=16.git diff --git a/src/lib/16_sprit.c b/src/lib/16_sprit.c index e32e9f96..53cfc691 100755 --- a/src/lib/16_sprit.c +++ b/src/lib/16_sprit.c @@ -117,6 +117,9 @@ void oldanimate_spri(struct sprite *spri, video_t *video) // replace VGA stride with our own and mem ptr. then sprite rendering at this stage is just (0,0) vga_state.vga_draw_stride_limit = (video->page[0].width + 3 - spri->x) >> 2; +#ifndef SPRITE + modexClearRegion(&video->page[0], spri->x, spri->y, 16, 32, 1); +#else draw_vrl1_vgax_modex( spri->x,//-video->page[0].dx, spri->y,//-video->page[0].dy, @@ -125,6 +128,7 @@ void oldanimate_spri(struct sprite *spri, video_t *video) spri->sprite_vrl_cont->buffer + sizeof(struct vrl1_vgax_header), spri->sprite_vrl_cont->data_size ); +#endif // restore stride vga_state.vga_draw_stride_limit = vga_state.vga_draw_stride = video->page[0].stridew;