--- /dev/null
+grep -iR "$1" src/lib/doslib/*
// Events go here\r
\r
\r
+ //omemptr = vga_state.vga_graphics_ram; // save original mem ptr\r
omemptr = (VGA_RAM_PTR)video->page[0].data;//vga_state.vga_graphics_ram; // save original mem ptr\r
x=spri->x;\r
y=spri->y;\r
);\r
#endif\r
// restore ptr\r
+ //vga_state.vga_graphics_ram = video->omemptr;\r
vga_state.vga_graphics_ram = omemptr;\r
\r
// block copy to visible RAM from offscreen\r
vga_restore_rm0wm0();\r
\r
// restore stride\r
+ //vga_state.vga_draw_stride_limit= video->vga_draw_stride_limit; vga_state.vga_draw_stride= video->vga_draw_stride;\r
vga_state.vga_draw_stride_limit = vga_state.vga_draw_stride = GVARVIDEO->page[0].stridew;\r
\r
// Depending on delay, update indices\r
page_t page[MAXPAGE]; //can be used as a pointer to root page[0]\r
word vmem_remain; //remaining video memory\r
byte num_of_pages; //number of actual pages\r
+ //doslib origi vars\r
+ byte far * omemptr;\r
+ byte vga_draw_stride;\r
+ byte vga_draw_stride_limit; // further X clipping\r
+//\r
boolean __near p; //render page number //BLEH\r
boolean __near r; //page flip if true\r
word pr[MAXPAGE][4]; //render sections of pages (this is supposed to be set up to draw sections of the screen if updated)\r
modexCalcVmemRemain(video);\r
video->p=0;\r
video->r=1;\r
+ //doslib origi var\r
+ video->omemptr= vga_state.vga_graphics_ram;\r
+ video->vga_draw_stride= vga_state.vga_draw_stride;\r
+ video->vga_draw_stride_limit= vga_state.vga_draw_stride_limit;\r
\r
//setup the buffersize\r
video->page[0].dx=video->page[0].dy=\r
-Subproject commit b9ab630a721c6f7503b9b76f981ef89046219a6a
+Subproject commit 8d600cad129e0cc05c1474a492b7fd7acb6b2f0a
//#define FRAME3 modexClearRegion(pip[/*!*/(pip->video->p)].page, x, y, 24, 32, dire);\r
//#define FRAME4 modexClearRegion(pip[/*!*/(pip->video->p)].page, x, y, 24, 32, 1+dire);\r
#ifndef SPRITO\r
-#define DRAWFRAME if (i == -1) return; oldanimate_spri(player[pn].ent->spri, pip->video)\r
-//#define DRAWFRAME if (i == -1) return; animate_spri(player[pn].ent->spri, pip->video)\r
+//#define DRAWFRAME if (i == -1) return; oldanimate_spri(player[pn].ent->spri, pip->video)\r
+#define DRAWFRAME if (i == -1) return; animate_spri(player[pn].ent->spri, pip->video)\r
#define NFRAME1 i = set_anim_by_id(player[pn].ent->spri, 2+dire); DRAWFRAME;\r
#define NFRAME2 i = set_anim_by_id(player[pn].ent->spri, 1+dire); DRAWFRAME;\r
#define NFRAME3 i = set_anim_by_id(player[pn].ent->spri, dire); DRAWFRAME;\r
#include <hw/vga/vga.h>\r
#include <hw/vga/vrl.h>\r
\r
-//#define SPRITE\r
-#define SPRITO\r
+#define SPRITE\r
+//#define SPRITO\r
//#define TILERENDER\r
\r
-//extern void modexDrawSpriteRegion(page_t *page, int x, int y, int rx, int ry, int rw, int rh, bitmap_t *bmp);\r
-\r
//modexDrawSpritePBufRegion\r
//modexDrawBmpPBufRegion\r
//#define PBUFSFUN modexDrawSpriteRegion\r