pkgsrc/wm/ctwm/patches/patch-aa
wiz bb2cccdce1 Fix core dump with jpeg background picture on 64bit machines.
Patch from Motoyuki OHMORI in PR 43308.

Bump PKGREVISION.
2010-05-15 00:05:00 +00:00

13 lines
428 B
Text

$NetBSD: patch-aa,v 1.8 2010/05/15 00:05:00 wiz Exp $
--- util.c.orig 2007-02-16 09:24:27.000000000 +0000
+++ util.c
@@ -3942,7 +3942,7 @@ void ConstrainByBorders (TwmWindow *twmw
#ifdef JPEG
unsigned short int *buffer_16bpp;
-long *buffer_32bpp;
+int32_t *buffer_32bpp;
static void convert_for_16 (int w, int x, int y, int r, int g, int b) {
buffer_16bpp [y * w + x] = ((r >> 3) << 11) + ((g >> 2) << 5) + (b >> 3);