/[gxemul]/trunk/src/devices/dev_px.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/src/devices/dev_px.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4 by dpavlin, Mon Oct 8 16:18:00 2007 UTC revision 12 by dpavlin, Mon Oct 8 16:18:38 2007 UTC
# Line 25  Line 25 
25   *  SUCH DAMAGE.   *  SUCH DAMAGE.
26   *     *  
27   *   *
28   *  $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 $
29   *     *  
30   *  TURBOchannel Pixelstamp graphics device.   *  TURBOchannel Pixelstamp graphics device.
31   *   *
# Line 789  void dev_px_init(struct machine *machine Line 789  void dev_px_init(struct machine *machine
789                  fatal("dev_px_init(): unimplemented px_type\n");                  fatal("dev_px_init(): unimplemented px_type\n");
790          }          }
791    
792          d->fb_mem = memory_new(PX_XSIZE * PX_YSIZE * d->bitdepth / 8);          d->fb_mem = memory_new(PX_XSIZE * PX_YSIZE * d->bitdepth / 8,
793                machine->arch);
794          if (d->fb_mem == NULL) {          if (d->fb_mem == NULL) {
795                  fprintf(stderr, "dev_px_init(): out of memory (1)\n");                  fprintf(stderr, "dev_px_init(): out of memory (1)\n");
796                  exit(1);                  exit(1);
797          }          }
798    
799          d->vfb_data = dev_fb_init(machine, d->fb_mem, 0, VFB_GENERIC,          d->vfb_data = dev_fb_init(machine, d->fb_mem, 0, VFB_GENERIC,
800              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);
801          if (d->vfb_data == NULL) {          if (d->vfb_data == NULL) {
802                  fprintf(stderr, "dev_px_init(): out of memory (2)\n");                  fprintf(stderr, "dev_px_init(): out of memory (2)\n");
803                  exit(2);                  exit(2);

Legend:
Removed from v.4  
changed lines
  Added in v.12

  ViewVC Help
Powered by ViewVC 1.1.26