Fri Feb 2 16:45:17 CET 2007 ar...@cs...
* fix-polygon-behaviour-64
Fixed issue 'Strange polygon behaviour on 64-bit machines'
reported by Chris Mears at 14 Dec 2006.
=
Problem: the arrays inspected by the wxDC_Polygon function
are assumed to contain 32-bits ints. On 64-bit machines
these are actually 64-bits ints.
=
Fix: (a bit of a hack...) the code now assumes that the
arrays contain intptr_t values. This type represents ints
of the same number of bits as the Haskell ints (on 32-bit
and 64-bit machines). The code now dereferences each element
in the array correctly, but still truncates the possibly
64-bit value to a 32-bit value. This is not a problem
in practice.
|