Added FAR accessor where needed
#include "dma.h"
+#include "mapper.h"
#include "memory.h"
#include "tools.h"
#include "string.h"
@@ -1114,7 +1115,7 @@ u16 BMP_drawBitmap(const Bitmap *bitmap, u16 x, u16 y, u16 loadpal)
MEM_free(b);
}
else
- BMP_drawBitmapData(bitmap->image, x, y, w, h, w >> 1);
+ BMP_drawBitmapData((u8*) FAR(bitmap->image), x, y, w, h, w >> 1);
// load the palette
if (loadpal)
@@ -1146,7 +1147,7 @@ u16 BMP_drawBitmapScaled(const Bitmap *bitmap, u16 x, u16 y, u16 w, u16 h, u16 l
MEM_free(b);
}
else
- BMP_scale(bitmap->image, bmp_wb, bmp_h, bmp_wb, BMP_getWritePointer(x, y), w >> 1, h, BMP_PITCH);
+ BMP_scale(FAR(bitmap->image), bmp_wb, bmp_h, bmp_wb, BMP_getWritePointer(x, y), w >> 1, h, BMP_PITCH);
// load the palette
if (loadpal)
