- video->ofs.pattern_ofs=(uint16_t)video->page[0].data;\r
- video->ofs.offscreen_ofs=(uint16_t)video->page[3].data;\r
- w = (enti->x + 24) & (~3);\r
- h = enti->y + 32;\r
-\r
- // block copy pattern to where we will draw the sprite\r
- vga_setup_wm1_block_copy();\r
- o2 = video->ofs.offscreen_ofs; //dest\r
- o = video->ofs.pattern_ofs + (enti->y * video->page[0].stridew) + (enti->x >> 2); // source\r
- for (i=0;i < h;i++,o += video->page[0].stridew,o2 += (w >> 2)) vga_wm1_mem_block_copy(o2,o,w >> 2);\r
- // must restore Write Mode 0/Read Mode 0 for this code to continue drawing normally\r
- vga_restore_rm0wm0();\r
+ // block copy pattern to where we will draw the sprite\r
+ vga_setup_wm1_block_copy();\r
+ o2 = video->ofs.offscreen_ofs; //dest\r
+ o = video->ofs.pattern_ofs + (enti->y * video->page[0].stridew) + (enti->x >> 2); // source\r
+ for (i=0;i < h;i++,o += video->page[0].stridew,o2 += (w >> 2)) vga_wm1_mem_block_copy(o2,o,w >> 2);\r
+ // must restore Write Mode 0/Read Mode 0 for this code to continue drawing normally\r
+ vga_restore_rm0wm0();\r
+ }//else{\r
+ //w=h=o=i=o2=0;\r
+ //modexCopyPageRegion(&video->page[2], &video->page[0], enti->x, enti->y, 0, 0, 24, 32);\r
+ //}\r