-/////////////////////////////////////////////////////////////////////////////
-// //
-// setvideo() - This function Manages the video modes //
-// //
-/////////////////////////////////////////////////////////////////////////////
-void setVGAmodeX(global_game_variables_t *vid, boolean vq)
-{
- union REGS in, out;
-
- if(!vq)
- { // deinit the video
- // change to the video mode we were in before we switched to mode 13h
- modexLeave();
- in.h.ah = 0x00;
- in.h.al = vid->old_mode;
- int86(0x10, &in, &out);
-
- }else if(vq==1){ // init the video
- // get old video mode
- in.h.ah = 0xf;
- int86(0x10, &in, &out);
- vid->old_mode = out.h.al;
- // enter mode
- modexEnter();
- }
-}
-
-void pdump(page_t *pee)
-{
- int mult=(QUADWH);
- int palq=(mult)*TILEWH;
- int palcol=0;
- int palx, paly;
- for(paly=0; paly<palq; paly+=mult){
- for(palx=0; palx<palq; palx+=mult){
- modexClearRegion(pee, palx+TILEWH, paly+TILEWH, mult, mult, palcol);
- palcol++;
- }
- }
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// //
-// cls() - This clears the screen to the specified color, on the VGA or on //
-// the Virtual screen. //
-// //
-/////////////////////////////////////////////////////////////////////////////
-void cls(page_t *page, byte color, byte *Where)
-{
- //modexClearRegion(page, 0, 0, page->width, page->height, color);
- _fmemset(Where, color, page->width*(page->height*2));
-}
-