mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2025-12-25 20:00:11 +01:00
Fix infinite loop bug in xlib backend
This commit is contained in:
parent
ea1218a434
commit
1467168326
2 changed files with 6 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-07-27 David Reveman <davidr@novell.com>
|
||||
|
||||
* src/cairo-xlib-surface.c (_cairo_xlib_screen_from_visual): Trivial
|
||||
fix for typo that caused infinite loop when using non-default visuals.
|
||||
|
||||
2005-07-25 Carl Worth <cworth@cworth.org>
|
||||
|
||||
* src/cairoint.h:
|
||||
|
|
|
|||
|
|
@ -1493,7 +1493,7 @@ _cairo_xlib_screen_from_visual (Display *dpy, Visual *visual)
|
|||
return screen;
|
||||
for (d = 0; d < screen->ndepths; d++) {
|
||||
depth = &screen->depths[d];
|
||||
for (v = 0; v < depth->nvisuals; d++)
|
||||
for (v = 0; v < depth->nvisuals; v++)
|
||||
if (visual == &depth->visuals[v])
|
||||
return screen;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue