diff options
author | Jack Jansen <jack.jansen@cwi.nl> | 1996-03-18 13:36:33 (GMT) |
---|---|---|
committer | Jack Jansen <jack.jansen@cwi.nl> | 1996-03-18 13:36:33 (GMT) |
commit | f4875af09c1c2dc2ad76329560ce4345b0fe4cd9 (patch) | |
tree | 07966b9b0a6cd1804eb3c6a84305311c9b858fcd /Mac/Demo/imgbrowse | |
parent | 18a99f5597d5df48d3b8319fc84d39d1d736ad9c (diff) | |
download | cpython-f4875af09c1c2dc2ad76329560ce4345b0fe4cd9.zip cpython-f4875af09c1c2dc2ad76329560ce4345b0fe4cd9.tar.gz cpython-f4875af09c1c2dc2ad76329560ce4345b0fe4cd9.tar.bz2 |
Minor fix
Diffstat (limited to 'Mac/Demo/imgbrowse')
-rw-r--r-- | Mac/Demo/imgbrowse/imgbrowse.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Mac/Demo/imgbrowse/imgbrowse.py b/Mac/Demo/imgbrowse/imgbrowse.py index e498a06..56d6d31 100644 --- a/Mac/Demo/imgbrowse/imgbrowse.py +++ b/Mac/Demo/imgbrowse/imgbrowse.py @@ -49,7 +49,7 @@ def dumppixmap(data): def mk16pixmap(w, h, data): """kludge a pixmap together""" rv = struct.pack("lhhhhhhhlllhhhhlll", - id(data), + id(data)+12, w*2 + 0x8000, 0, 0, h, w, 0, @@ -128,7 +128,7 @@ class imgwindow(FrameWork.Window): currect, QuickDraw.srcCopy, None) self.info() Qd.CopyBits(self.pixmap, self.wid.GetWindowPort().portBits, self.pictrect, - currect, QuickDraw.srcCopy, None) + currect, QuickDraw.srcCopy+QuickDraw.ditherCopy, None) ## Qd.DrawPicture(self.picture, currect) def fitrect(self): |