From: sparky4 Date: Mon, 15 Feb 2016 16:38:58 +0000 (-0600) Subject: tweak is made wwww X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=45c160da7f0f91bf78e739f5353a64c3ee5bfe3c;p=plz.git tweak is made wwww --- diff --git a/copper.o b/copper.o index 7344a43..d315cdb 100755 Binary files a/copper.o and b/copper.o differ diff --git a/plz.o b/plz.o deleted file mode 100755 index f3455e9..0000000 Binary files a/plz.o and /dev/null differ diff --git a/plzpart.o b/plzpart.o index 7e82377..5c99e78 100755 Binary files a/plzpart.o and b/plzpart.o differ diff --git a/tweak.c b/tweak.c index 5b64831..39163a1 100755 --- a/tweak.c +++ b/tweak.c @@ -31,14 +31,16 @@ __asm{ } } -void tw_setrgbpalette(byte *p) +void tw_setrgbpalette(/*byte *p, */int r, int g, int b) { int i; // modexWaitBorder(); outp(PAL_WRITE_REG, 0); /* start at the beginning of palette */ // for(i=0; i void tw_opengraph2(); -void tw_setrgbpalette(byte *p); +//void tw_setrgbpalette(byte *p); +void tw_setrgbpalette(int r, int g, int b); + +#define PAL_READ_REG 0x03C7 /* Color register, read address */ +#define PAL_WRITE_REG 0x03C8 /* Color register, write address */ +#define PAL_DATA_REG 0x03C9 /* Color register, data port */ +#define PAL_SIZE (256 * 3) + #endif diff --git a/tweak.o b/tweak.o index c77bfdc..cb1fe33 100755 Binary files a/tweak.o and b/tweak.o differ