nanogui: Images not drawn (FLTK+nxlib app with nano-X)


Previous by date: 14 Feb 2006 04:41:12 +0000 Re: displaying texts/fonts, Robbie
Next by date: 14 Feb 2006 04:41:12 +0000 Re: displaying texts/fonts, Greg Haerr
Previous in thread: 14 Feb 2006 04:41:12 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Martin Kajdas
Next in thread:

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


Previous by date: 14 Feb 2006 04:41:12 +0000 Re: displaying texts/fonts, Robbie
Next by date: 14 Feb 2006 04:41:12 +0000 Re: displaying texts/fonts, Greg Haerr
Previous in thread: 14 Feb 2006 04:41:12 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Martin Kajdas
Next in thread:


Powered by ezmlm-browse 0.20.