[Trac #287] Cursor in X windows far too small on real panel
Zarro Boogs per Child
bugtracker at laptop.org
Sun Nov 5 13:08:50 EST 2006
#287: Cursor in X windows far too small on real panel
-----------------------------+----------------------------------------------
Reporter: mfoster | Owner: jg
Type: defect | Status: new
Priority: high | Milestone: BTest-1
Component: X window system | Resolution:
Keywords: |
-----------------------------+----------------------------------------------
Comment (by jg):
The code snippet below is from the package libXcursor/src/display.c
and is the algorithm used to determine the cursor size.
As you can see, DisplayHeight and Width is used to set a size if
not overridden by either an X resource or environment variable.
Kids like larger cursors than adults, so we may want to override
the default computation.
This also begs the longer term question of whether we want an OLPC
cursor theme????
It also begs the question of whether we've loaded the special high
visibility themes into our image for those with vision problems????
{{{
if (!v)
v = XGetDefault (dpy, "Xcursor", "size");
if (v)
info->size = atoi (v);
/*
* Use the Xft size to guess a size; make cursors 16 "points" tall
*/
if (info->size == 0)
{
int dpi = 0;
v = XGetDefault (dpy, "Xft", "dpi");
if (v)
dpi = atoi (v);
if (dpi)
info->size = dpi * 16 / 72;
}
/*
* Use display size to guess a size
*/
if (info->size == 0)
{
int dim;
if (DisplayHeight (dpy, DefaultScreen (dpy)) <
DisplayWidth (dpy, DefaultScreen (dpy)))
dim = DisplayHeight (dpy, DefaultScreen (dpy));
else
dim = DisplayWidth (dpy, DefaultScreen (dpy));
/*
* 16 pixels on a display of dimension 768
*/
info->size = dim / 48;
}
}}}
--
Ticket URL: <http://dev.laptop.org/ticket/287#comment:1>
One Laptop Per Child <http://laptop.org/>
More information about the Bugs
mailing list