X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fdos_gfx.cpp;h=4491318bb566aec00009d07b18767b42e530b70f;hb=52483d8c2e16d2298a30e8b5aca4a90c07ea1816;hp=1bdb3b81c95d64c586625555c251c2d9493593e2;hpb=84295b9096af5701af8007af168c90e32f53bcdd;p=16.git diff --git a/src/lib/dos_gfx.cpp b/src/lib/dos_gfx.cpp index 1bdb3b81..4491318b 100644 --- a/src/lib/dos_gfx.cpp +++ b/src/lib/dos_gfx.cpp @@ -131,7 +131,7 @@ void plotpixel(int x, int y, byte color, byte *Where){ } // king_crimson's code -void plotpixelfast(int x, int y, byte color, byte *Where) { +void ppf(int x, int y, byte color, byte *Where) { byte far *vidptr; vidptr = (byte far *)(Where + y*SW + x); *vidptr = color; @@ -175,21 +175,18 @@ void BlockMove(){ }*/ } -void etesuto(int x = 160, int y = 100){ +void eraseplayer(int x = 160, int y = 100){ memset(vaddr+(x+(y*SW)),gq-1,1); - //updatevbuff(); } -void qtesuto(int x = 160, int y = 100, int color = 0){ +void drawplayer(int x = 160, int y = 100, int color = 0){ memset(vaddr+(x+(y*SW)),color,1); - //updatevbuff(); } //color てすと int colortest(){ if(gq < NUM_COLORS){ cls(gq, vaddr); - //updatevbuff(); gq++; }else gq = 0; return gq; @@ -199,7 +196,6 @@ int colortest(){ int colorz(){ if(gq < HGQ){ cls(gq, vaddr); - //updatevbuff(); gq++; }else gq = LGQ; return gq; @@ -210,7 +206,7 @@ void ssd(int svq){ if(sy < SH+1){ if(sx < SW+1){ //plotpixel(xx, yy, coor, vga); - plotpixelfast(sx, sy, coor, vga); + ppf(sx, sy, coor, vga); //printf("%d %d %d %d\n", sx, sy, svq, coor); sx++; }else sx = 0; @@ -221,6 +217,60 @@ void ssd(int svq){ } }else sy = 0; } + +//inefficient pallette dumping +void pdump(int mult){ + int palq=mult*16; + int palcol=0; + for(int paly=0; paly