]> 4ch.mooo.com Git - 16.git/blobdiff - src/vrstest.c
wwww
[16.git] / src / vrstest.c
index e12abe92a37ae334d218af4ae9e9700cc2b2cc25..b168b3d1be562d3bca55fc683be6ee291810dad7 100755 (executable)
@@ -24,7 +24,7 @@
 #include <dos.h>
 #include <string.h>
 #include "src/lib/modex16.h"
-#include "src/lib/16_sprite.h"
+#include "src/lib/16_sprit.h"
 #include "src/lib/16_ca.h"
 #include "src/lib/16_mm.h"
 
@@ -52,6 +52,7 @@ void main() {
        struct vrl1_vgax_header huge *curr_vrl;
        struct vrl_container *vrl;
        int success;
+       word w=0;
 
 
 
@@ -174,7 +175,15 @@ void main() {
 
        while(!kbhit())
        {
-               modexPalUpdate0(pal);
+               switch(w)
+               {
+                       case 1024:
+                               modexPalUpdate0(pal);
+                               w=0;
+                       default:
+                               w++;
+                       break;
+               }
        }
        VGAmodeX(0, 1, &gvar);
        free(spri.sprite_vrl_cont);