This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Internal-wm/rootless observations


Alexander Gottwald wrote:

> Maybe the odd window width is the problem.

Thinking about it revealed that each pixmap line _must_ start at a boundary.

assuming 8bit mode and a window with width 1 at (0, 0)


pixmap starts at 0x100
screen base is at 0x100 (no problem)

moving the pixmap by 4 pixel down
screen base is 0xfc now

moving 1 pixel up
screen base is still 0xfc

We have no way to distinguish where to start. fbCopyNtoN just adds the
stride size to the base and lands somewhere in the wild. But each line must
begin at a 32 bit boundary and distinct lines must have distinct offsets.

ensuring the pixmap width (in bytes) is always a multiple of 4. Every line
starts at a 32bit boundary.

bye
        ago
NP: In Strict Confidence - Sleepless
-- 
 Alexander.Gottwald@s1999.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]