"""kludge a pixmap together"""
fmtinfo = _fmt_to_mac[fmt]
- rv = struct.pack("lhhhhhhhlllhhhhlll",
+ rv = struct.pack("lHhhhhhhlllhhhhlll",
id(data)+MacOS.string_id_to_buffer, # HACK HACK!!
w*2 + 0x8000,
0, 0, h, w,
# PixMap data structure element format (as used with struct)
_pmElemFormat = {
'baseAddr':'l', # address of pixel data
- 'rowBytes':'h', # bytes per row, plus 0x8000
+ 'rowBytes':'H', # bytes per row, plus 0x8000
'bounds':'hhhh', # coordinates imposed over pixel data
'top':'h',
'left':'h',