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


Previous by date: 9 Feb 2006 18:19:17 +0000 Re: FLTK2 - Colors mixed up / Keyboard, oliver.schlenker.smmotioncontrol.de
Next by date: 9 Feb 2006 18:19:17 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Martin Kajdas
Previous in thread: 9 Feb 2006 18:19:17 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr
Next in thread: 9 Feb 2006 18:19:17 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Martin Kajdas

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

Previous by date: 9 Feb 2006 18:19:17 +0000 Re: FLTK2 - Colors mixed up / Keyboard, oliver.schlenker.smmotioncontrol.de
Next by date: 9 Feb 2006 18:19:17 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Martin Kajdas
Previous in thread: 9 Feb 2006 18:19:17 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr
Next in thread: 9 Feb 2006 18:19:17 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Martin Kajdas


Powered by ezmlm-browse 0.20.