summaryrefslogtreecommitdiffstats
path: root/win/tkWinImage.c
diff options
context:
space:
mode:
authorhobbs <hobbs@noemail.net>2003-07-17 01:02:32 (GMT)
committerhobbs <hobbs@noemail.net>2003-07-17 01:02:32 (GMT)
commite871c520fdd4fa97e4587196cded49db5fa13c83 (patch)
treed43b293bf2b0ce41482cef7d8212b2a0df84efe4 /win/tkWinImage.c
parent3c112598e829217aeae916f6465fe6269f668343 (diff)
downloadtk-e871c520fdd4fa97e4587196cded49db5fa13c83.zip
tk-e871c520fdd4fa97e4587196cded49db5fa13c83.tar.gz
tk-e871c520fdd4fa97e4587196cded49db5fa13c83.tar.bz2
* win/tkWinImage.c (XGetImage): correct init of biSizeImage in
bitmap header. [Bug 703697] (cap) FossilOrigin-Name: cd3e74e804bf73950bb46a69687d77f6860a5601
Diffstat (limited to 'win/tkWinImage.c')
-rw-r--r--win/tkWinImage.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/win/tkWinImage.c b/win/tkWinImage.c
index 7ba9329..49e2d7a 100644
--- a/win/tkWinImage.c
+++ b/win/tkWinImage.c
@@ -8,7 +8,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tkWinImage.c,v 1.6 2002/10/10 21:01:18 hobbs Exp $
+ * RCS: @(#) $Id: tkWinImage.c,v 1.7 2003/07/17 01:02:32 hobbs Exp $
*/
#include "tkWinInt.h"
@@ -621,7 +621,7 @@ XGetImage(display, d, x, y, width, height, plane_mask, format)
infoPtr->bmiHeader.biPlanes = 1;
infoPtr->bmiHeader.biBitCount = 1;
infoPtr->bmiHeader.biCompression = BI_RGB;
- infoPtr->bmiHeader.biCompression = 0;
+ infoPtr->bmiHeader.biSizeImage = 0;
infoPtr->bmiHeader.biXPelsPerMeter = 0;
infoPtr->bmiHeader.biYPelsPerMeter = 0;
infoPtr->bmiHeader.biClrUsed = 0;