pkgsrc/www/arena/patches/patch-ah
fredb b3599b99f0 Vanquish array cast bogon. Fixes "black screen" problem for 16-bit displays
on mac68k. Speculatively remove "NOT_FOR_PLATFORM= NetBSD-alpha-*"; needs
to be verified.
2000-02-09 01:01:20 +00:00

15 lines
416 B
Text

$NetBSD: patch-ah,v 1.1 2000/02/09 01:01:21 fredb Exp $
--- Arena/Source/image.c.orig Tue Mar 3 14:27:02 1998
+++ Arena/Source/image.c Tue Feb 8 16:55:47 2000
@@ -969,8 +969,8 @@
GetColour(r, g, b, &ulp);
- *p++ = ((char*)&ulp)[0]; /* LSB first! */
- *p++ = ((char*)&ulp)[1];
+ *p++ = (ulp ) & 0xFF; /* LSB first! */
+ *p++ = (ulp >> 8) & 0xFF;
}
}