OSDN Git Service

hmmmm.....
authorsparky4 <sparky4@cock.li>
Sun, 24 May 2015 10:37:16 +0000 (05:37 -0500)
committersparky4 <sparky4@cock.li>
Sun, 24 May 2015 10:37:16 +0000 (05:37 -0500)
modified:   pcxtest.exe
modified:   src/lib/bitmap.c
modified:   src/pcxtest.c

pcxtest.exe
src/lib/bitmap.c
src/pcxtest.c

index fbde82a..4a55771 100644 (file)
Binary files a/pcxtest.exe and b/pcxtest.exe differ
index cdec73b..82a8525 100644 (file)
@@ -91,8 +91,8 @@ bitmapLoadPcx(char *filename) {
        /* allocate the buffer */
        //printf("%zu\n", _memmax());\r
        bufSize = (/*(dword)*/result.width * result.height);
-//     result.data = malloc(bufSize);
-       result.data = (byte far *)_fmalloc(bufSize);
+       result.data = malloc(bufSize);
+//     result.data = (byte far *)_fmalloc(bufSize);
 //     result.data = (byte __huge *)halloc(bufSize, sizeof(byte));
        printf("&bufSize=%p\n", &bufSize);
        printf("&result.data=%p\n", result.data);
index ea1d296..ea8bfdf 100644 (file)
@@ -71,7 +71,7 @@ void main() {
        modexEnter();\r
 \r
        /* fix up the palette and everything */\r
-//++++ modexPalUpdate(&bmp, 0, 0, 0);\r
+       modexPalUpdate1(bmp.palette);\r
 \r
        /* clear and draw one sprite and one bitmap */\r
        modexClearRegion(&page, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT, 1);\r