w 7 object.c object* newobject(int w, int h, char* shape){ w 11 object.c ret->size.x = w; w 13 object.c ret->shape = (char*)malloc(sizeof(char)*w*h); w 14 object.c strncpy(ret->shape, shape, w*h); w 25 object.c int w = obj->size.x; w 28 object.c for(j=0;j<w;j++){ w 29 object.c if(obj->shape[i*w+j] != ' '){ w 30 object.c putdata(x+j, y+i, obj->shape[i*w+j],(unsigned char)id); w 12 object.h object* newobject(int w, int h, char* shape);