mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-02-05 15:50:32 +01:00
Fix various code/comment typos
This commit is contained in:
parent
c96a71e709
commit
caa3c2e1e7
6 changed files with 20 additions and 20 deletions
|
|
@ -1421,7 +1421,7 @@ QuickSortRects(
|
|||
* Step 2. Split the rectangles into the minimum number of proper y-x
|
||||
* banded regions. This may require horizontally merging
|
||||
* rectangles, and vertically coalescing bands. With any luck,
|
||||
* this step in an identity tranformation (ala the Box widget),
|
||||
* this step in an identity transformation (ala the Box widget),
|
||||
* or a coalescing into 1 box (ala Menus).
|
||||
*
|
||||
* Step 3. Merge the separate regions down to a single region by calling
|
||||
|
|
|
|||
|
|
@ -102,7 +102,7 @@ slim_hidden_def(cairo_matrix_init);
|
|||
* @x0: location to store x0 (X-translation component) of matrix, or %NULL
|
||||
* @y0: location to store y0 (Y-translation component) of matrix, or %NULL
|
||||
*
|
||||
* Gets the matrix values for the affine tranformation that @matrix represents.
|
||||
* Gets the matrix values for the affine transformation that @matrix represents.
|
||||
* See cairo_matrix_init().
|
||||
*
|
||||
*
|
||||
|
|
|
|||
|
|
@ -626,7 +626,7 @@ compress_dup (const void *data, unsigned long data_size,
|
|||
}
|
||||
|
||||
/* Emit alpha channel from the image into the given data, providing
|
||||
* and id that can be used to reference the resulting SMask object.
|
||||
* an id that can be used to reference the resulting SMask object.
|
||||
*
|
||||
* In the case that the alpha channel happens to be all opaque, then
|
||||
* no SMask object will be emitted and *id_ret will be set to 0.
|
||||
|
|
@ -1006,7 +1006,7 @@ emit_linear_colorgradient (cairo_pdf_surface_t *surface,
|
|||
}
|
||||
|
||||
static cairo_pdf_resource_t
|
||||
emit_stiched_colorgradient (cairo_pdf_surface_t *surface,
|
||||
emit_stitched_colorgradient (cairo_pdf_surface_t *surface,
|
||||
unsigned int n_stops,
|
||||
cairo_pdf_color_stop_t stops[])
|
||||
{
|
||||
|
|
@ -1020,7 +1020,7 @@ emit_stiched_colorgradient (cairo_pdf_surface_t *surface,
|
|||
&stops[i+1]);
|
||||
}
|
||||
|
||||
/* ... and stich them together */
|
||||
/* ... and stitch them together */
|
||||
function = _cairo_pdf_surface_new_object (surface);
|
||||
_cairo_output_stream_printf (surface->output,
|
||||
"%d 0 obj\r\n"
|
||||
|
|
@ -1065,7 +1065,7 @@ emit_stiched_colorgradient (cairo_pdf_surface_t *surface,
|
|||
return function;
|
||||
}
|
||||
|
||||
#define COLOR_STOP_EPSILLON 1e-6
|
||||
#define COLOR_STOP_EPSILON 1e-6
|
||||
|
||||
static cairo_pdf_resource_t
|
||||
emit_pattern_stops (cairo_pdf_surface_t *surface, cairo_gradient_pattern_t *pattern)
|
||||
|
|
@ -1095,13 +1095,13 @@ emit_pattern_stops (cairo_pdf_surface_t *surface, cairo_gradient_pattern_t *patt
|
|||
|
||||
/* make sure first offset is 0.0 and last offset is 1.0. (Otherwise Acrobat
|
||||
* Reader chokes.) */
|
||||
if (stops[0].offset > COLOR_STOP_EPSILLON) {
|
||||
if (stops[0].offset > COLOR_STOP_EPSILON) {
|
||||
memcpy (allstops, stops, sizeof (cairo_pdf_color_stop_t));
|
||||
stops = allstops;
|
||||
stops[0].offset = 0.0;
|
||||
n_stops++;
|
||||
}
|
||||
if (stops[n_stops-1].offset < 1.0 - COLOR_STOP_EPSILLON) {
|
||||
if (stops[n_stops-1].offset < 1.0 - COLOR_STOP_EPSILON) {
|
||||
memcpy (&stops[n_stops],
|
||||
&stops[n_stops - 1],
|
||||
sizeof (cairo_pdf_color_stop_t));
|
||||
|
|
@ -1110,12 +1110,12 @@ emit_pattern_stops (cairo_pdf_surface_t *surface, cairo_gradient_pattern_t *patt
|
|||
}
|
||||
|
||||
if (n_stops == 2) {
|
||||
/* no need for stiched function */
|
||||
/* no need for stitched function */
|
||||
function = emit_linear_colorgradient (surface, &stops[0], &stops[1]);
|
||||
} else {
|
||||
/* multiple stops: stich. XXX possible optimization: regulary spaced
|
||||
* stops do not require stiching. XXX */
|
||||
function = emit_stiched_colorgradient (surface,
|
||||
/* multiple stops: stitch. XXX possible optimization: regulary spaced
|
||||
* stops do not require stitching. XXX */
|
||||
function = emit_stitched_colorgradient (surface,
|
||||
n_stops,
|
||||
stops);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1828,7 +1828,7 @@ cairo_win32_surface_get_dc (cairo_surface_t *surface)
|
|||
}
|
||||
|
||||
/**
|
||||
* cario_win32_surface_get_image
|
||||
* cairo_win32_surface_get_image
|
||||
* @surface: a #cairo_surface_t
|
||||
*
|
||||
* Returns a #cairo_surface_t image surface that refers to the same bits
|
||||
|
|
|
|||
|
|
@ -926,7 +926,7 @@ _operator_needs_alpha_composite (cairo_operator_t op,
|
|||
/* There is a bug in most older X servers with compositing using a
|
||||
* untransformed repeating source pattern when the source is in off-screen
|
||||
* video memory, and another with repeated transformed images using a
|
||||
* general tranform matrix. When these bugs could be triggered, we need a
|
||||
* general transform matrix. When these bugs could be triggered, we need a
|
||||
* fallback: in the common case where we have no transformation and the
|
||||
* source and destination have the same format/visual, we can do the
|
||||
* operation using the core protocol for the first bug, otherwise, we need
|
||||
|
|
@ -2020,7 +2020,7 @@ _cairo_xcb_surface_add_glyph (xcb_connection_t *dpy,
|
|||
*
|
||||
* This is a postscript-y model, where each glyph has its own
|
||||
* coordinate space, so it's what we expose in terms of metrics. It's
|
||||
* apparantly what everyone's expecting. Everyone except the Render
|
||||
* apparently what everyone's expecting. Everyone except the Render
|
||||
* extension. Render wants to see a glyph tile starting at (0,0), with
|
||||
* an origin offset inside, like this:
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1106,7 +1106,7 @@ _operator_needs_alpha_composite (cairo_operator_t op,
|
|||
/* There is a bug in most older X servers with compositing using a
|
||||
* untransformed repeating source pattern when the source is in off-screen
|
||||
* video memory, and another with repeated transformed images using a
|
||||
* general tranform matrix. When these bugs could be triggered, we need a
|
||||
* general transform matrix. When these bugs could be triggered, we need a
|
||||
* fallback: in the common case where we have no transformation and the
|
||||
* source and destination have the same format/visual, we can do the
|
||||
* operation using the core protocol for the first bug, otherwise, we need
|
||||
|
|
@ -1166,7 +1166,7 @@ _categorize_composite_operation (cairo_xlib_surface_t *dst,
|
|||
|
||||
/* If these are on the same screen but otherwise incompatible,
|
||||
* make a copy as core drawing can't cross depths and doesn't
|
||||
* work rightacross visuals of the same depth
|
||||
* work right across visuals of the same depth
|
||||
*/
|
||||
if (_cairo_xlib_surface_same_screen (dst, src) &&
|
||||
!_surfaces_compatible (dst, src))
|
||||
|
|
@ -2390,7 +2390,7 @@ _cairo_xlib_surface_add_glyph (Display *dpy,
|
|||
*
|
||||
* This is a postscript-y model, where each glyph has its own
|
||||
* coordinate space, so it's what we expose in terms of metrics. It's
|
||||
* apparantly what everyone's expecting. Everyone except the Render
|
||||
* apparently what everyone's expecting. Everyone except the Render
|
||||
* extension. Render wants to see a glyph tile starting at (0,0), with
|
||||
* an origin offset inside, like this:
|
||||
*
|
||||
|
|
@ -2694,9 +2694,9 @@ _cairo_xlib_surface_emit_glyphs (cairo_xlib_surface_t *dst,
|
|||
* the first zero-size glyph. However, we don't skip all size-zero
|
||||
* glyphs, since that will force a new element at every space. We
|
||||
* skip initial size-zero glyphs and hope that it's enough. Since
|
||||
* Xft never exposed that bug, this assumptation should be correct.
|
||||
* Xft never exposed that bug, this assumption should be correct.
|
||||
*
|
||||
* We also skip any glyph that hav troublesome coordinates. We want
|
||||
* We also skip any glyphs that have troublesome coordinates. We want
|
||||
* to make sure that (glyph2.x - (glyph1.x + glyph1.width)) fits in
|
||||
* a signed 16bit integer, otherwise it will overflow in the render
|
||||
* protocol.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue