aboutsummaryrefslogtreecommitdiff
path: root/zetsubou
diff options
context:
space:
mode:
authorAlex Marshall <SquidMan72@gmail.com>2009-03-21 12:33:13 -0700
committerAlex Marshall <SquidMan72@gmail.com>2009-03-21 12:33:13 -0700
commita6b987ceb3cd8aac1bc31e1625f8672137970848 (patch)
treed949d270c5b97be70ab67f9ef378e48148c8a083 /zetsubou
parenta226973585a2b71f5a7af823aab6333eca2f2691 (diff)
Fixed compile errors. Sorry! Also, forgot to mention I added CMP support to the GD section.
Diffstat (limited to 'zetsubou')
-rw-r--r--zetsubou/endian.obin0 -> 816 bytes
-rw-r--r--zetsubou/main.obin0 -> 3856 bytes
-rw-r--r--zetsubou/tpl.c9
-rw-r--r--zetsubou/tpl.obin0 -> 29324 bytes
-rwxr-xr-xzetsubou/zetsuboubin0 -> 38572 bytes
5 files changed, 5 insertions, 4 deletions
diff --git a/zetsubou/endian.o b/zetsubou/endian.o
new file mode 100644
index 0000000..0b987c3
--- /dev/null
+++ b/zetsubou/endian.o
Binary files differ
diff --git a/zetsubou/main.o b/zetsubou/main.o
new file mode 100644
index 0000000..afca942
--- /dev/null
+++ b/zetsubou/main.o
Binary files differ
diff --git a/zetsubou/tpl.c b/zetsubou/tpl.c
index fb3cb10..f935b91 100644
--- a/zetsubou/tpl.c
+++ b/zetsubou/tpl.c
@@ -125,12 +125,12 @@ int TPL_ConvertRGBA8ToBitMap(u8* tplbuf, u32 tplsize, u32 tplpoint, u8** bitmapd
height = goodheight;
for(i = 0; i < 8; i++) {
u32 rgba = (rb[i] << 0) | (ag[8 + i] << 8) | (rb[8 + i] << 16) | (ag[i] << 24);
- if(rgba != (255 | (255 << 16))
+ if(rgba != (255 | (255 << 16)))
(*(u32**)bitmapdata)[bmpslot++] = rgba;
}
for(i = 16; i < 24; i++) {
u32 rgba = (rb[i] << 0) | (ag[8 + i] << 8) | (rb[8 + i] << 16) | (ag[i] << 24);
- if(rgba != (255 | (255 << 16))
+ if(rgba != (255 | (255 << 16)))
(*(u32**)bitmapdata)[bmpslot++] = rgba;
}
z = 0;
@@ -282,6 +282,7 @@ int TPL_ConvertBitMapToRGB5A3(u8* bitmapdata, u32 bitmapsize, u8** tplbuf, u32 w
newpixel |= r << 10;
newpixel |= g << 5;
newpixel |= b << 0;
+ }
}
((u16*)writebuf)[iv++] = be16(newpixel);
}
@@ -488,7 +489,7 @@ int TPL_ConvertBitMapToI8(u8* bitmapdata, u32 bitmapsize, u8** tplbuf, u32 width
if(x > width || y < height)
i1 = 0;
else
- u8 i1 = (rgba >> 0) & 0xFF;
+ i1 = (rgba >> 0) & 0xFF;
((u8*)writebuf)[iv++] = i1;
}
@@ -763,7 +764,7 @@ int TPL_ConvertToGD(u8* tplbuf, u32 tplsize, char basename[], u32 format)
break;
case TPL_FORMAT_CMP:
printf("CMP\n");
- ret = TPL_ConvertCMPToBitMap(tplbuf, tplsize, tplpoint, &bitmapdata, bi.width, bi.height);
+ ret = TPL_ConvertCMPToBitMap(tplbuf, tplsize, tplpoint, &bitmapdata, be16(h.width), be16(h.height));
break;
default:
printf("Unsupported: %d.\n", be32(h.format));
diff --git a/zetsubou/tpl.o b/zetsubou/tpl.o
new file mode 100644
index 0000000..bb2aafc
--- /dev/null
+++ b/zetsubou/tpl.o
Binary files differ
diff --git a/zetsubou/zetsubou b/zetsubou/zetsubou
new file mode 100755
index 0000000..8774ea3
--- /dev/null
+++ b/zetsubou/zetsubou
Binary files differ