nanogui: Images not drawn (FLTK+nxlib app with nano-X)
Subject:
RE: [nanogui] Images not drawn (FLTK+nxlib app with nano-X)
From:
"Martin Kajdas" ####@####.####
Date:
9 Feb 2006 18:19:17 +0000
Message-Id: <CF2BB830A62F914F848E5AD5FFF57AC22914CD@mkmail.MKPROD.COM>
I think I found it.
In the function nxutil.c::GrNewBitmapFromData(), there is a 'bswap'
variable that forces byte swap.
For any even number of bytes, the byte swap occurs, but if there is any
left over byte, the byte swap does not occur.
Then, when the GrNewRegionFromPixmap is called, the last byte (not being
swapped) is 0 (wrong byte) and therefore clipped.
I did not figure out how to fix this yet, but maybe you can help.
Martin