]> 4ch.mooo.com Git - plz.git/blobdiff - tweak.c
dang it!!
[plz.git] / tweak.c
diff --git a/tweak.c b/tweak.c
index 5b648310014a6255197c284221f5581738f82e2a..d2eeb1f1afb0f3d858d0cefd9fc091b3d2e8ca35 100755 (executable)
--- a/tweak.c
+++ b/tweak.c
@@ -31,14 +31,16 @@ __asm{
 }\r
 }\r
 \r
-void tw_setrgbpalette(byte *p)\r
+void tw_setrgbpalette(int a, int r, int g, int b)\r
 {\r
        int i;\r
 //     modexWaitBorder();\r
-       outp(PAL_WRITE_REG, 0);  /* start at the beginning of palette */\r
+       outp(PAL_WRITE_REG, a);  /* start at the beginning of palette */\r
 //     for(i=0; i<PAL_SIZE/2; i++)\r
 //     {\r
-               outp(PAL_DATA_REG, p[i]);\r
+               outp(PAL_DATA_REG, r);\r
+               outp(PAL_DATA_REG, g);\r
+               outp(PAL_DATA_REG, b);\r
 //     }\r
 //     modexWaitBorder();        /* waits one retrace -- less flicker */\r
 //     for(; i<PAL_SIZE; i++)\r