--- trunk/src/devices/dev_px.c 2007/10/08 16:18:31 11 +++ trunk/src/devices/dev_px.c 2007/10/08 16:18:38 12 @@ -25,7 +25,7 @@ * SUCH DAMAGE. * * - * $Id: dev_px.c,v 1.26 2005/02/18 07:29:56 debug Exp $ + * $Id: dev_px.c,v 1.28 2005/07/19 10:48:06 debug Exp $ * * TURBOchannel Pixelstamp graphics device. * @@ -789,14 +789,15 @@ fatal("dev_px_init(): unimplemented px_type\n"); } - d->fb_mem = memory_new(PX_XSIZE * PX_YSIZE * d->bitdepth / 8); + d->fb_mem = memory_new(PX_XSIZE * PX_YSIZE * d->bitdepth / 8, + machine->arch); if (d->fb_mem == NULL) { fprintf(stderr, "dev_px_init(): out of memory (1)\n"); exit(1); } d->vfb_data = dev_fb_init(machine, d->fb_mem, 0, VFB_GENERIC, - PX_XSIZE, PX_YSIZE, PX_XSIZE, PX_YSIZE, d->bitdepth, d->px_name, 1); + PX_XSIZE, PX_YSIZE, PX_XSIZE, PX_YSIZE, d->bitdepth, d->px_name); if (d->vfb_data == NULL) { fprintf(stderr, "dev_px_init(): out of memory (2)\n"); exit(2);