nanogui: Images not drawn (FLTK+nxlib app with nano-X)
Subject:
Re: [nanogui] Images not drawn (FLTK+nxlib app with nano-X)
From:
"Greg Haerr" ####@####.####
Date:
14 Feb 2006 04:41:12 +0000
Message-Id: <032801c63120$d86d6400$6401a8c0@winXP>
> 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.
Great job Martin!
This broken code has been in for some time. I'll review your
fix, and then add to CVS. Thanks!
Regards,
Greg