diff options
author | Owen Taylor <otaylor@redhat.com> | 2004-07-10 21:41:37 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-07-10 21:41:37 +0000 |
commit | 0835f598fcfbf6667a4be9cd9e7f6f16663dcb6a (patch) | |
tree | ff38ab996514339ab0ad7b2be560b525a6537655 /pango/pangoft2-render.c | |
parent | 5bf0c1d04b6ed75ad2c88fbed1e1eaecf0dcbfa2 (diff) | |
download | pango-0835f598fcfbf6667a4be9cd9e7f6f16663dcb6a.tar.gz |
Make PangoMatrix arguments const where appropriate.
Sat Jul 10 17:33:38 2004 Owen Taylor <otaylor@redhat.com>
* pango/pangoft2-private.h pango/pangoft2-render.c
pango/pango-context.[ch] pango/pangoft2.[ch] pango/pango-utils.
pango/pango-types.h pango/pangofc-fontmap.c: Make PangoMatrix
arguments const where appropriate.
* pango/pango-context.c pango/fonts.c pango/pangofc-font.c
pangofc-fontmap.c pango/pangoft2.c pango/pangoft2-fontmap.c
pango/pangoxft-font.c pango/pangoxft-fontmap.c
pango/pangowin32-fontmap.c: Use G_DEFINE_TYPE comprehensively.
* pango/pangoft2-private.h pangoft2.c: Un-staticify
pango_ft2_font_get_type.
Diffstat (limited to 'pango/pangoft2-render.c')
-rw-r--r-- | pango/pangoft2-render.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/pango/pangoft2-render.c b/pango/pangoft2-render.c index 367429e1..73b33570 100644 --- a/pango/pangoft2-render.c +++ b/pango/pangoft2-render.c @@ -227,10 +227,10 @@ typedef struct } Point; static void -to_device (PangoMatrix *matrix, - double x, - double y, - Point *result) +to_device (const PangoMatrix *matrix, + double x, + double y, + Point *result) { result->x = (x * matrix->xx + y * matrix->xy) / PANGO_SCALE + matrix->x0; result->y = (x * matrix->yx + y * matrix->yy) / PANGO_SCALE + matrix->y0; @@ -270,12 +270,12 @@ compare_points (const void *a, * is done anti-aliased. **/ void -_pango_ft2_draw_rect (FT_Bitmap *bitmap, - PangoMatrix *matrix, - int x, - int y, - int width, - int height) +_pango_ft2_draw_rect (FT_Bitmap *bitmap, + const PangoMatrix *matrix, + int x, + int y, + int width, + int height) { static const PangoMatrix identity = PANGO_MATRIX_INIT; Point points[4]; @@ -390,11 +390,11 @@ _pango_ft2_draw_rect (FT_Bitmap *bitmap, #define HEIGHT_SQUARES 2.5 static void -get_total_matrix (PangoMatrix *total, - PangoMatrix *global, - int x, - int y, - int square) +get_total_matrix (PangoMatrix *total, + const PangoMatrix *global, + int x, + int y, + int square) { PangoMatrix local; gdouble scale = 0.5 * square; @@ -433,12 +433,12 @@ get_total_matrix (PangoMatrix *total, * in the original rectangle) **/ void -_pango_ft2_draw_error_underline (FT_Bitmap *bitmap, - PangoMatrix *matrix, - int x, - int y, - int width, - int height) +_pango_ft2_draw_error_underline (FT_Bitmap *bitmap, + const PangoMatrix *matrix, + int x, + int y, + int width, + int height) { int square = height / HEIGHT_SQUARES; |