~ubuntu-branches/ubuntu/raring/python-scipy/raring-proposed

« back to all changes in this revision

Viewing changes to Lib/sandbox/xplt/src/play/mac/bitblt.m

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-01-07 14:12:12 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070107141212-mm0ebkh5b37hcpzn
* Remove build dependency on python-numpy-dev.
* python-scipy: Depend on python-numpy instead of python-numpy-dev.
* Package builds on other archs than i386. Closes: #402783.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * bitblt.m
 
3
 * p_bitblt for Mac OS X.
 
4
 *
 
5
 * Copyright (c) 1999.  See accompanying LEGAL file for details.
 
6
 */
 
7
 
 
8
#include "playm.h"
 
9
 
 
10
void
 
11
p_bitblt(p_win *w, int x, int y, p_win *offscreen,
 
12
         int x0, int y0, int x1, int y1)
 
13
{
 
14
  View* view = w->view;
 
15
  View* source = offscreen->view;
 
16
  if (p_signalling) {
 
17
    p_abort();
 
18
    return;
 
19
  }
 
20
  if (view)
 
21
  { [view lockFocus];
 
22
    if (source)
 
23
    { int gs = [source gState];
 
24
      if (gs) NSCopyBits(gs, NSMakeRect(x0,y0,x1-x0,y1-y0), NSMakePoint(x,y+y1-y0));
 
25
    }
 
26
    [view unlockFocus];
 
27
    [w->w flushWindow];
 
28
  }
 
29
}