]> 4ch.mooo.com Git - plz.git/blobdiff - tweak.c
tweak being made wwww going to port p16 code wwww
[plz.git] / tweak.c
diff --git a/tweak.c b/tweak.c
index 4e89b13c193ad3c38201bd7748e60ffb536baec5..5b648310014a6255197c284221f5581738f82e2a 100755 (executable)
--- a/tweak.c
+++ b/tweak.c
@@ -1,4 +1,5 @@
 #include "tweak.h"\r
+#include "types.h"\r
 void tw_opengraph2()\r
 {\r
 __asm{\r
@@ -29,3 +30,19 @@ __asm{
        out     dx, ax                  ; 384 wide\r
 }\r
 }\r
+\r
+void tw_setrgbpalette(byte *p)\r
+{\r
+       int i;\r
+//     modexWaitBorder();\r
+       outp(PAL_WRITE_REG, 0);  /* start at the beginning of palette */\r
+//     for(i=0; i<PAL_SIZE/2; i++)\r
+//     {\r
+               outp(PAL_DATA_REG, p[i]);\r
+//     }\r
+//     modexWaitBorder();        /* waits one retrace -- less flicker */\r
+//     for(; i<PAL_SIZE; i++)\r
+//     {\r
+//             outp(PAL_DATA_REG, p[(i)]);\r
+//     }\r
+}\r