diff options
author | das <das> | 2002-04-08 09:04:31 (GMT) |
---|---|---|
committer | das <das> | 2002-04-08 09:04:31 (GMT) |
commit | 6bd371547ba7d755135efbaefba209f9e426ea7d (patch) | |
tree | 388b7f23b6b3cafb2c20243044e6b0a315a7ec0f /mac/tkMacDraw.c | |
parent | f60be3c5256e49d23f90ae11a4467101cc6bca71 (diff) | |
download | tk-6bd371547ba7d755135efbaefba209f9e426ea7d.zip tk-6bd371547ba7d755135efbaefba209f9e426ea7d.tar.gz tk-6bd371547ba7d755135efbaefba209f9e426ea7d.tar.bz2 |
2002-04-08 Daniel Steffen <das@users.sourceforge.net>
* mac/tkMacProjects.sea.hqx: added tkPanedWindow.c to projects
* mac/tkMacAppInit.c: fixes to MSL stdin/stdout hookup to the
TkConsole when using shared MSL libraries; fix for crashing
bug on exit: writing to stdin/sterr when console has already
been destroyed. (both fixes need support in MSL, see
'CW Pro6 changes' in tcl/mac/tcltkMacBuildSupport.sea.hqx)
* mac/tkMacDialog.c: fixes to Navigation Services Dialog filter.
* mac/tkMacDraw.c: add panic for overwide TkImages that would
crash Tk on mac otherwise.
Diffstat (limited to 'mac/tkMacDraw.c')
-rw-r--r-- | mac/tkMacDraw.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mac/tkMacDraw.c b/mac/tkMacDraw.c index f684976..f3af2fc 100644 --- a/mac/tkMacDraw.c +++ b/mac/tkMacDraw.c @@ -10,7 +10,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tkMacDraw.c,v 1.8 1999/12/14 06:52:56 hobbs Exp $ + * RCS: @(#) $Id: tkMacDraw.c,v 1.9 2002/04/08 09:04:43 das Exp $ */ #include "tkInt.h" @@ -370,6 +370,9 @@ TkPutImage( pixmap.pmTable = NULL; pixmap.pmReserved = 0; pixmap.baseAddr = image->data; + if (image->bytes_per_line >= 0x4000) { + panic("TkImage too wide!"); + } pixmap.rowBytes = image->bytes_per_line | 0x8000; CopyBits((BitMap *) &pixmap, &((GrafPtr) destPort)->portBits, |