#include "16/src/lib/bitmap.h"\r
#include <stdio.h>\r
#include <stdlib.h>\r
+#include <malloc.h>\r
//#include "dos_kb.h"\r
#define SCREEN_WIDTH 320\r
#define SCREEN_HEIGHT 240\r
// setkb(1);\r
IN_Startup(&gvar);\r
/* create the map */\r
- map = allocMap(160,120); //20x15 is the resolution of the screen you can make omapS smaller than 20x15 but the null space needs to be drawn properly\r
+ map = allocMap(40,30); //20x15 is the resolution of the screen you can make omapS smaller than 20x15 but the null space needs to be drawn properly\r
oinitMap(&map);\r
mv.map = ↦\r
// mv2.map = ↦\r
// show = &mv;\r
// draw = &mv2;\r
draw = &mv;\r
+//IN_StartAck (&gvar); while (!IN_CheckAck (&gvar)){ } omodexLeave(); IN_Shutdown(&gvar); exit(0);\r
\r
//TODO: set player position data here according to the viewable map screen thingy\r
\r
\r
result.width =w;\r
result.height=h;\r
- result.data = malloc(sizeof(byte) * w * h);\r
+ result.data = _fmalloc(sizeof(byte) * w * h);\r
\r
return result;\r
}\r
int x, y;\r
int i;\r
int tile = 1;\r
- map->tiles = malloc(sizeof(otiles_t));\r
+ map->tiles = _fmalloc(sizeof(otiles_t));\r
\r
/* create the tile set */\r
- map->tiles->data = malloc(sizeof(bitmap_t));\r
+ map->tiles->data = _fmalloc(sizeof(bitmap_t));\r
map->tiles->data->width = (TILEWH*2);\r
map->tiles->data->height= TILEWH;\r
- map->tiles->data->data = malloc((TILEWH*2)*TILEWH);\r
+ map->tiles->data->data = _fmalloc((TILEWH*2)*TILEWH);\r
map->tiles->tileHeight = TILEWH;\r
map->tiles->tileWidth =TILEWH;\r
map->tiles->rows = 1;\r