~ubuntu-branches/ubuntu/raring/vice/raring

« back to all changes in this revision

Viewing changes to src/arch/unix/macosx/cocoa/video.m

  • Committer: Bazaar Package Importer
  • Author(s): Laszlo Boszormenyi (GCS)
  • Date: 2009-03-31 00:37:15 UTC
  • mfrom: (1.2.2 upstream)
  • mto: This revision was merged to the branch mainline in revision 17.
  • Revision ID: james.westby@ubuntu.com-20090331003715-mzclchtl0dp7fcl0
Tags: upstream-2.1.dfsg
ImportĀ upstreamĀ versionĀ 2.1.dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
    NSData *data = [NSData dataWithBytes:&canvasPtr length:sizeof(video_canvas_t *)];
81
81
 
82
82
    // call UI thread to create canvas
83
 
    [[theVICEMachine app] createCanvas:data withRect:NSMakeRect(100,100,w,h)];
 
83
    [[theVICEMachine app] createCanvas:data withSize:NSMakeSize(w,h)];
84
84
 
85
85
    // init rendering
86
86
    video_canvas_set_palette(canvas,canvas->palette);
87
87
 
 
88
    // register canvas in machine controller (to allow access via id)
 
89
    canvas->canvasId = [theVICEMachine registerCanvas:canvas];
 
90
 
88
91
    // re-post all required notifications for new window
89
92
    [[theVICEMachine machineNotifier] notifyNewWindow];
90
93