mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-04 21:08:13 +02:00
Fix software cursor
This commit is contained in:
parent
9aa84fdd1e
commit
07695a0320
2 changed files with 16 additions and 0 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2006-04-04 David Reveman <davidr@novell.com>
|
||||
|
||||
* hw/xgl/glx/xglx.c (xglxScreenInit): Re-install colormap
|
||||
after initializing software cursor (#6489). (Tiago Vignatti)
|
||||
|
||||
2006-04-03 David Reveman <davidr@novell.com>
|
||||
|
||||
* hw/xgl/Makefile.am (Xgl_LDADD): Static objects before dynamic
|
||||
|
|
|
|||
|
|
@ -772,6 +772,7 @@ xglxScreenInit (int index,
|
|||
XColor black, dummy;
|
||||
Pixmap bitmap;
|
||||
Cursor cursor;
|
||||
XID installedCmaps;
|
||||
|
||||
if (!XAllocNamedColor (xdisplay, pScreenPriv->colormap,
|
||||
"black", &black, &dummy))
|
||||
|
|
@ -794,6 +795,16 @@ xglxScreenInit (int index,
|
|||
XFreeColors (xdisplay, pScreenPriv->colormap, &black.pixel, 1, 0);
|
||||
|
||||
miDCInitialize (pScreen, &xglxPointerScreenFuncs);
|
||||
|
||||
/* XXX: Assumes only one installed colormap. */
|
||||
if ((*pScreen->ListInstalledColormaps) (pScreen, &installedCmaps))
|
||||
{
|
||||
ColormapPtr installedCmap;
|
||||
|
||||
installedCmap = LookupIDByType (installedCmaps, RT_COLORMAP);
|
||||
if (installedCmap)
|
||||
(*pScreen->InstallColormap) (installedCmap);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue