From f69bd1a90945d26fe3713ceb409652b58ec24ad1 Mon Sep 17 00:00:00 2001 From: Bryce Harrington Date: Fri, 20 Nov 2015 11:57:43 -0800 Subject: clients: Fix a few minor typos in comments --- clients/window.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'clients') diff --git a/clients/window.c b/clients/window.c index db40a436..bf3c470c 100644 --- a/clients/window.c +++ b/clients/window.c @@ -146,7 +146,7 @@ struct window_output { struct toysurface { /* * Prepare the surface for drawing. Makes sure there is a surface - * of the right size available for rendering, and returns it. + * of the right size available for rendering, and return it. * dx,dy are the x,y of wl_surface.attach. * width,height are the new buffer size. * If flags has SURFACE_HINT_RESIZE set, the user is @@ -168,7 +168,7 @@ struct toysurface { /* * Make the toysurface current with the given EGL context. - * Returns 0 on success, and negative of failure. + * Returns 0 on success, and negative on failure. */ int (*acquire)(struct toysurface *base, EGLContext ctx); @@ -1998,7 +1998,7 @@ get_text_extents(struct display *display, struct tooltip *tooltip) cairo_t *cr; cairo_text_extents_t extents; - /* Use the dummy_surface because tooltip's surface was not + /* Use the dummy_surface because the tooltip's surface was not * created yet, and parent does not have a valid surface * outside repaint, either. */ @@ -4226,7 +4226,7 @@ surface_redraw(struct surface *surface) if (surface->widget->use_cairo && !widget_get_cairo_surface(surface->widget)) { - DBG_OBJ(surface->surface, "cancelled due buffer failure\n"); + DBG_OBJ(surface->surface, "cancelled due to buffer failure\n"); return -1; } -- cgit v1.2.1