X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2F16_vl.c;h=91776466836ea7cb0bd26297e9b02aaa5967d5af;hb=946dfbe9b29be3a3b180c37e0b414a938e867dc6;hp=2078def23a770eaa6b92ec95fb614e946df96462;hpb=2cf4b7048a7f3878c61e7a479225e870ee5e0069;p=16.git diff --git a/src/lib/16_vl.c b/src/lib/16_vl.c index 2078def2..91776466 100755 --- a/src/lib/16_vl.c +++ b/src/lib/16_vl.c @@ -55,6 +55,8 @@ void VGAmodeX(sword vq, boolean cmem, global_game_variables_t *gv) default: // init the video if(gv->video.VL_Started) return; + if(!gv->video.VL_Initiated) + TL_VidInit(gv); // get old video mode //in.h.ah = 0xf; //int86(0x10, &in, &out); @@ -412,7 +414,7 @@ modexPanPage(page_t *page, int dx, int dy) { void modexSelectPlane(byte plane) { - outp(SC_INDEX, MAP_MASK); /* select plane */ + outp(SC_INDEX, SC_MAPMASK); /* select plane */ outp(SC_DATA, plane); } @@ -448,7 +450,7 @@ modexClearRegion(page_t *page, int x, int y, int w, int h, byte color) MOV ES, AX MOV DI, poffset ; go to the first pixel MOV DX, SC_INDEX ; point to the map mask - MOV AL, MAP_MASK + MOV AL, SC_MAPMASK OUT DX, AL INC DX MOV AL, color ; get ready to write colors @@ -537,7 +539,7 @@ modexCopyPageRegion(page_t *dest, page_t *src, MOV AX, SC_INDEX ; point to the mask register MOV DX, AX ; - MOV AL, MAP_MASK ; + MOV AL, SC_MAPMASK ; OUT DX, AL ; INC DX ; @@ -771,7 +773,8 @@ modexPalUpdate(byte *p) } void -modexPalUpdate0(byte *p) +//modexPalUpdate0(byte *p) +VL_modexPalScramble(byte *p) { int i; //modexWaitBorder();