Skip to content

Commit

Permalink
xlib: Add more _cairo_error() calls
Browse files Browse the repository at this point in the history
We still don't track various error conditions...
  • Loading branch information
Benjamin Otte committed Nov 8, 2010
1 parent 5f2e647 commit 78dadf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cairo-xlib-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -3371,7 +3371,7 @@ cairo_xlib_surface_create (Display *dpy,

if (width > XLIB_COORD_MAX || height > XLIB_COORD_MAX) {
/* you're lying, and you know it! */
return _cairo_surface_create_in_error (CAIRO_STATUS_INVALID_SIZE);
return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_INVALID_SIZE));
}

scr = _cairo_xlib_screen_from_visual (dpy, visual);
Expand Down Expand Up @@ -3413,7 +3413,7 @@ cairo_xlib_surface_create_for_bitmap (Display *dpy,
cairo_status_t status;

if (width > XLIB_COORD_MAX || height > XLIB_COORD_MAX)
return _cairo_surface_create_in_error (CAIRO_STATUS_INVALID_SIZE);
return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_INVALID_SIZE));

status = _cairo_xlib_screen_get (dpy, scr, &screen);
if (unlikely (status))
Expand Down Expand Up @@ -3459,7 +3459,7 @@ cairo_xlib_surface_create_with_xrender_format (Display *dpy,
cairo_status_t status;

if (width > XLIB_COORD_MAX || height > XLIB_COORD_MAX)
return _cairo_surface_create_in_error (CAIRO_STATUS_INVALID_SIZE);
return _cairo_surface_create_in_error (_cairo_error (CAIRO_STATUS_INVALID_SIZE));

status = _cairo_xlib_screen_get (dpy, scr, &screen);
if (unlikely (status))
Expand Down

0 comments on commit 78dadf1

Please sign in to comment.