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]

KDE no icons: The problem only happens in 32 bit color mode and more information


THE REASON I NEED HELP FROM KDE FOLKS IS THAT THIS PROBLEM DID NOT HAPPEN
WITH KDE 2.X AND CYGWIN/XFREE86


I need someone that is familiar with how the icons are displayed in KDE to
tell me why our pixmap and visual formats were ok with KDE 2.X but not with
KDE 3.0.


Selected 'xdypinfo' output follows at the bottom of the email for
Cygwin/XFree86 and a comparison server running in 32 bit mode.


The problem of no icons being display only happens in 32 bit color mode and
it appears to be due to the way that our visual or pixmaps are setup.

It seems that there is a problem in either or both of:

1) The way the Cygwin/XFree86 pixmap formats are defined, specifically the
fact that we have both depth 24, bits_per_pixel 24 pixmap and a depth 32,
bits_per_pixel 32 pixmaps.  This is compared to XVisions's depth 24,
bits_per_pixel 32 pixmap.

2) The fact that our visual has depth '32 planes' at 32 bits per pixel
compared to XVision's '24 planes' at 32 bits per pixel.


I have tried altering our pixmap formats to be similar to XVision's with no
success.  I tried all combinations of 24 and 32 bits for the two values,
just to be thorough.  Our pixmap definitions are right at the top of
http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/hw/xwin/InitOutput.c

I have tried altering our call to miSetVisualTypesAndMasks in
http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/hw/xwin/winshadddnl.c
to pass '24' as the depth when the screen depth is actually 32.

I have also passed 24 to fbSetupScreen and fbFinishScreenInit in our
winFinishScreenInitFB function in
http://cvsweb.xfree86.org/cvsweb/xc/programs/Xserver/hw/xwin/winscrinit.c
to no avail.


The general result of any of these modifications is that the server crashes
on startup or the visual type hasn't actually changed.


That's all for now,

Harold Hunt
http://xfree86.cygwin.com/





Cygwin/XFree86 running at 32 bits per pixel:
============================================
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
     depth 1, bits_per_pixel 1, scanline_pad 32
     depth 4, bits_per_pixel 8, scanline_pad 32
     depth 8, bits_per_pixel 8, scanline_pad 32
     depth 15, bits_per_pixel 16, scanline_pad 32
     depth 16, bits_per_pixel 16, scanline_pad 32
     depth 24, bits_per_pixel 24, scanline_pad 32
     depth 32, bits_per_pixel 32, scanline_pad 32
   visual:
     visual id:    0x22
     class:    TrueColor
     depth:    32 planes
     available colormap entries:    2048 per subfield
     red, green, blue masks:    0xff0000, 0xff00, 0xff
     significant bits in color specification:    8 bits


XVision running at 32 bits per pixel:
=====================================
bitmap unit, bit order, padding:    8, MSBFirst, 16
image byte order:    MSBFirst
number of supported pixmap formats:    2
supported pixmap formats:
     depth 1, bits_per_pixel 1, scanline_pad 16
     depth 24, bits_per_pixel 32, scanline_pad 32
   visual:
     visual id:    0x20
     class:    TrueColor
     depth:    24 planes
     available colormap entries:    256 per subfield
     red, green, blue masks:    0xff, 0xff00, 0xff0000
     significant bits in color specification:    8 bits


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