Lines Matching refs:info

32 _XcursorFreeDisplayInfo (XcursorDisplayInfo *info)
34 if (info->theme)
35 free (info->theme);
37 if (info->theme_from_config)
38 free (info->theme_from_config);
40 while (info->fonts)
42 XcursorFontInfo *fi = info->fonts;
43 info->fonts = fi->next;
47 free (info);
53 XcursorDisplayInfo *info, **prev;
61 for (prev = &_XcursorDisplayInfo; (info = *prev); prev = &(*prev)->next)
62 if (info->display == dpy)
64 *prev = info->next;
69 if (info)
70 _XcursorFreeDisplayInfo (info);
102 XcursorDisplayInfo *info, **prev, *old;
109 for (prev = &_XcursorDisplayInfo; (info = *prev); prev = &(*prev)->next)
111 if (info->display == dpy)
118 *prev = info->next;
119 info->next = _XcursorDisplayInfo;
120 _XcursorDisplayInfo = info;
126 if (info)
127 return info;
128 info = (XcursorDisplayInfo *) malloc (sizeof (XcursorDisplayInfo));
129 if (!info)
131 info->next = NULL;
132 info->display = dpy;
134 info->codes = XAddExtension (dpy);
135 if (!info->codes)
137 free (info);
140 (void) XESetCloseDisplay (dpy, info->codes->extension, _XcursorCloseDisplay);
143 * The debugging-trace for new info-blocks begins here.
147 traceOpts((T_CALLED(_XcursorGetDisplayInfo) " info %p, pid %d\n",
148 (void*)info, getpid()));
153 info->has_render_cursor = XcursorFalse;
154 info->has_anim_cursor = XcursorFalse;
160 info->has_render_cursor = XcursorTrue;
165 info->has_render_cursor = XcursorFalse;
166 traceOpts((T_OPTION(XCURSOR_CORE) ": %d\n", info->has_render_cursor));
168 if (info->has_render_cursor && (major > 0 || minor >= 8))
170 info->has_anim_cursor = XcursorTrue;
175 info->has_anim_cursor = XcursorFalse;
176 traceOpts((T_OPTION(XCURSOR_ANIM) ": %d\n", info->has_anim_cursor));
180 info->size = 0;
189 info->size = atoi (v);
190 traceOpts((T_OPTION(XCURSOR_SIZE) ": %d\n", info->size));
195 if (info->size == 0)
202 info->size = dpi * 16 / 72;
203 traceOpts((T_OPTION(XCURSOR_SIZE) ": %d\n", info->size));
209 if (info->size == 0)
221 info->size = dim / 48;
222 traceOpts((T_OPTION(XCURSOR_SIZE) ": %d\n", info->size));
225 info->theme = NULL;
226 info->theme_from_config = NULL;
231 info->resized_cursors = XcursorFalse;
239 info->resized_cursors = i;
241 traceOpts((T_OPTION(XCURSOR_RESIZED) ": %d\n", info->resized_cursors));
251 info->theme = strdup (v);
252 info->theme_from_config = strdup (v);
254 traceOpts((T_OPTION(XCURSOR_THEME) ": %s\n", NonNull(info->theme)));
259 info->dither = XcursorDitherThreshold;
266 info->dither = XcursorDitherThreshold;
268 info->dither = XcursorDitherMedian;
270 info->dither = XcursorDitherOrdered;
272 info->dither = XcursorDitherDiffuse;
274 traceOpts((T_OPTION(XCURSOR_DITHER) ": %d\n", info->dither));
276 info->theme_core = False;
288 info->theme_core = i;
290 traceOpts((T_OPTION(XCURSOR_THEME_CORE) ": %d\n", info->theme_core));
292 info->fonts = NULL;
294 info->bitmaps[i].bitmap = None;
297 * Link new info info list, making sure another
307 _XcursorFreeDisplayInfo (info);
308 info = old;
312 info->next = _XcursorDisplayInfo;
313 _XcursorDisplayInfo = info;
317 returnAddr(info);
323 XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
325 return info && info->has_render_cursor;
331 XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
333 return info && info->has_anim_cursor;
339 XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
341 if (!info)
343 info->size = size;
350 XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
352 if (!info)
354 return info->size;
360 XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
362 if (!info)
364 info->resized_cursors = flag;
371 XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
373 if (!info)
375 return info->resized_cursors;
381 XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
384 if (!info)
388 theme = info->theme_from_config;
398 if (info->theme)
399 free (info->theme);
400 info->theme = copy;
407 XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
409 if (!info)
411 return info->theme;
417 XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
419 if (!info)
421 return info->theme_core;
427 XcursorDisplayInfo *info = _XcursorGetDisplayInfo (dpy);
429 if (!info)
431 info->theme_core = theme_core;