diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2020-07-05 13:07:33 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2020-07-05 13:07:33 -0700 |
commit | 23e83724df4809fd7857cc609c33ce7e8d3021a4 (patch) | |
tree | c3018d5ce5c474883b9a31aca33962d73a540bd8 /glamor | |
parent | b0413b6e99c6b5fbc04229ce64ddf1f41b08e63e (diff) |
Fix spelling/wording issues
Most (but not all) of these were found by using
codespell --builtin clear,rare,usage,informal,code,names
but not everything reported by that was fixed.
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'glamor')
-rw-r--r-- | glamor/glamor.c | 2 | ||||
-rw-r--r-- | glamor/glamor.h | 2 | ||||
-rw-r--r-- | glamor/glamor_gradient.c | 6 | ||||
-rw-r--r-- | glamor/glamor_largepixmap.c | 2 | ||||
-rw-r--r-- | glamor/glamor_vbo.c | 2 |
5 files changed, 7 insertions, 7 deletions
diff --git a/glamor/glamor.c b/glamor/glamor.c index 59178b930..a11e2212d 100644 --- a/glamor/glamor.c +++ b/glamor/glamor.c @@ -1071,7 +1071,7 @@ glamor_shareable_fd_from_pixmap(ScreenPtr screen, int ret; /* - * The actual difference between a sharable and non sharable buffer + * The actual difference between a shareable and non-shareable buffer * is decided 4 call levels deep in glamor_make_pixmap_exportable() * based on pixmap->usage_hint == CREATE_PIXMAP_USAGE_SHARED * 2 of those calls are also exported API, so we cannot just add a flag. diff --git a/glamor/glamor.h b/glamor/glamor.h index 76ad84ed9..31157471d 100644 --- a/glamor/glamor.h +++ b/glamor/glamor.h @@ -344,7 +344,7 @@ extern _X_EXPORT void glamor_set_drawable_modifiers_func(ScreenPtr screen, * @scrn: Current screen info pointer. * @fd: Current drm fd. * - * This function creates and intialize EGL contexts. + * This function creates and initializes EGL contexts. * Should be called from DDX's preInit function. * Return TRUE if success, otherwise return FALSE. * */ diff --git a/glamor/glamor_gradient.c b/glamor/glamor_gradient.c index eef078860..7e5d5cca9 100644 --- a/glamor/glamor_gradient.c +++ b/glamor/glamor_gradient.c @@ -204,7 +204,7 @@ _glamor_create_radial_gradient_program(ScreenPtr screen, int stops_count, * Refer to pixman radial gradient. * * The problem is given the two circles of c1 and c2 with the radius of r1 and - * r1, we need to caculate the t, which is used to do interpolate with stops, + * r1, we need to calculate the t, which is used to do interpolate with stops, * using the fomula: * length((1-t)*c1 + t*c2 - p) = (1-t)*r1 + t*r2 * expand the fomula with xy coond, get the following: @@ -428,11 +428,11 @@ _glamor_create_linear_gradient_program(ScreenPtr screen, int stops_count, * | * * step 1: compute the distance of p, pt1 and pt2 in the slope direction. - * Caculate the distance on Y axis first and multiply cos_val to + * Calculate the distance on Y axis first and multiply cos_val to * get the value on slope direction(pd, p1d and p2d represent the * distance of p, pt1, and pt2 respectively). * - * step 2: caculate the percentage of (pd - p1d)/(p2d - p1d). + * step 2: calculate the percentage of (pd - p1d)/(p2d - p1d). * If (pd - p1d) > (p2d - p1d) or < 0, then sub or add (p2d - p1d) * to make it in the range of [0, (p2d - p1d)]. * diff --git a/glamor/glamor_largepixmap.c b/glamor/glamor_largepixmap.c index f9adb93bc..57760f8d3 100644 --- a/glamor/glamor_largepixmap.c +++ b/glamor/glamor_largepixmap.c @@ -744,7 +744,7 @@ glamor_compute_transform_clipped_regions(PixmapPtr pixmap, /* * As transform and repeatpad mode. - * We may get a clipped result which in multipe regions. + * We may get a clipped result which in multiple regions. * It's not easy to do a 2nd round clipping just as we do * without transform/repeatPad. As it's not easy to reverse * the 2nd round clipping result with a transform/repeatPad mode, diff --git a/glamor/glamor_vbo.c b/glamor/glamor_vbo.c index 734189fa2..000c3e827 100644 --- a/glamor/glamor_vbo.c +++ b/glamor/glamor_vbo.c @@ -24,7 +24,7 @@ /** * @file glamor_vbo.c * - * Helpers for managing streamed vertex bufffers used in glamor. + * Helpers for managing streamed vertex buffers used in glamor. */ #include "glamor_priv.h" |