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


Previous by date: 8 Feb 2006 02:03:05 +0000 Re: Signals, Greg Haerr
Next by date: 8 Feb 2006 02:03:05 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr
Previous in thread: 8 Feb 2006 02:03:05 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Martin Kajdas
Next in thread: 8 Feb 2006 02:03:05 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr

Subject: Re: [nanogui] Images not drawn (FLTK+nxlib app with nano-X)
From: "Greg Haerr" ####@####.####
Date: 8 Feb 2006 02:03:05 +0000
Message-Id: <05db01c62c53$cb722140$6401a8c0@winXP>

> The call to XSetClipMask also triggers: GrNewRegionFromPixmap and
client.c::GrUnionRectWithRegion calls which I believe generate the clipping
rectangles.
The sequence I described below also follows 32x32 images which are shown
properly.
The sequence is not the issue even though it is a mystery to me, just the
clipping rectangles (extents) created.

Martin -
    Sounds like a complex mess.  Typical of FLTK and X11, I believe.

I'd bet the bug is in GrNewRegionFromPixmap.  This routine,
called from XSetClipMask, tries to create a clipping region
from a MONOCHROME pixmap.  That is, it attempts to
build a mask (which is XSetClipMask's function), so that
only the 1-bits in the mono bitmap are used to display a
color pixmap later, likely.

You'll need to check that the pixmap that is actually sent to
XSetClipMask is in fact a mono bitmap.  If so, then you'll
need to debug nanox/nxutil::GrNewRegionFromPixmap().
The bug is very unlikely in the region code, but rather in
the code that traces the 1's and 0's in the pixmap,
and builds an incorrect clipping region.

Regards,

Greg


Previous by date: 8 Feb 2006 02:03:05 +0000 Re: Signals, Greg Haerr
Next by date: 8 Feb 2006 02:03:05 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr
Previous in thread: 8 Feb 2006 02:03:05 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Martin Kajdas
Next in thread: 8 Feb 2006 02:03:05 +0000 Re: Images not drawn (FLTK+nxlib app with nano-X), Greg Haerr


Powered by ezmlm-browse 0.20.