cairo-on-mac compilation fixes, r=stuart
git-svn-id: svn://10.0.0.236/trunk@203307 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -80,7 +80,7 @@ typedef struct cairo_quartzgl_surface {
|
||||
AGLContext aglContext;
|
||||
CGContextRef cgContext;
|
||||
|
||||
cairo_rectangle_fixed_t extents;
|
||||
cairo_rectangle_int16_t extents;
|
||||
|
||||
/* These are stored while drawing operations are in place, set up
|
||||
* by quartzgl_setup_source() and quartzgl_finish_source()
|
||||
@@ -438,7 +438,7 @@ SurfacePatternDrawFunc (void *info, CGContextRef context)
|
||||
{
|
||||
cairo_surface_pattern_t *spat = (cairo_surface_pattern_t *) info;
|
||||
cairo_surface_t *pat_surf = spat->surface;
|
||||
cairo_rectangle_fixed_t extents;
|
||||
cairo_rectangle_int16_t extents;
|
||||
cairo_status_t status;
|
||||
|
||||
cairo_quartzgl_surface_t *quartz_surf = NULL;
|
||||
@@ -455,7 +455,7 @@ SurfacePatternDrawFunc (void *info, CGContextRef context)
|
||||
|
||||
cairo_surface_t *dummy = cairo_quartzgl_surface_create (CAIRO_FORMAT_ARGB32, 1, 1, TRUE);
|
||||
|
||||
cairo_rectangle_fixed_t rect;
|
||||
cairo_rectangle_int16_t rect;
|
||||
_cairo_surface_get_extents (pat_surf, &rect);
|
||||
|
||||
cairo_surface_t *new_surf = NULL;
|
||||
@@ -506,7 +506,7 @@ _cairo_quartzgl_cairo_repeating_surface_pattern_to_quartz (cairo_quartzgl_surfac
|
||||
{
|
||||
cairo_surface_pattern_t *spat;
|
||||
cairo_surface_t *pat_surf;
|
||||
cairo_rectangle_fixed_t extents;
|
||||
cairo_rectangle_int16_t extents;
|
||||
|
||||
CGRect pbounds;
|
||||
CGAffineTransform ptransform, stransform;
|
||||
@@ -843,9 +843,9 @@ _cairo_quartzgl_surface_acquire_source_image (void *abstract_surface,
|
||||
|
||||
static cairo_status_t
|
||||
_cairo_quartzgl_surface_acquire_dest_image (void *abstract_surface,
|
||||
cairo_rectangle_fixed_t *interest_rect,
|
||||
cairo_rectangle_int16_t *interest_rect,
|
||||
cairo_image_surface_t **image_out,
|
||||
cairo_rectangle_fixed_t *image_rect,
|
||||
cairo_rectangle_int16_t *image_rect,
|
||||
void **image_extra)
|
||||
{
|
||||
cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface;
|
||||
@@ -867,9 +867,9 @@ _cairo_quartzgl_surface_acquire_dest_image (void *abstract_surface,
|
||||
|
||||
static void
|
||||
_cairo_quartzgl_surface_release_dest_image (void *abstract_surface,
|
||||
cairo_rectangle_fixed_t *interest_rect,
|
||||
cairo_rectangle_int16_t *interest_rect,
|
||||
cairo_image_surface_t *image,
|
||||
cairo_rectangle_fixed_t *image_rect,
|
||||
cairo_rectangle_int16_t *image_rect,
|
||||
void *image_extra)
|
||||
{
|
||||
cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface;
|
||||
@@ -1041,7 +1041,7 @@ _cairo_quartzgl_surface_clone_similar (void *abstract_surface,
|
||||
|
||||
static cairo_int_status_t
|
||||
_cairo_quartzgl_surface_get_extents (void *abstract_surface,
|
||||
cairo_rectangle_fixed_t *extents)
|
||||
cairo_rectangle_int16_t *extents)
|
||||
{
|
||||
cairo_quartzgl_surface_t *surface = (cairo_quartzgl_surface_t *) abstract_surface;
|
||||
|
||||
|
||||
@@ -1281,7 +1281,8 @@ typedef enum _cairo_surface_type {
|
||||
CAIRO_SURFACE_TYPE_WIN32,
|
||||
CAIRO_SURFACE_TYPE_BEOS,
|
||||
CAIRO_SURFACE_TYPE_DIRECTFB,
|
||||
CAIRO_SURFACE_TYPE_SVG
|
||||
CAIRO_SURFACE_TYPE_SVG,
|
||||
CAIRO_SURFACE_TYPE_QUARTZ2
|
||||
} cairo_surface_type_t;
|
||||
|
||||
cairo_public cairo_surface_type_t
|
||||
|
||||
@@ -1223,7 +1223,7 @@ nsThebesRenderingContext::GetTextDimensionsInternal(const PRUnichar* aString,
|
||||
return GetWidth(aString, aLength, aDimensions.width, aFontID);
|
||||
}
|
||||
|
||||
#if defined(_WIN32) || defined(XP_OS2) || defined(MOZ_X11) || defined(XP_BEOS)
|
||||
#if defined(_WIN32) || defined(XP_OS2) || defined(MOZ_X11) || defined(XP_BEOS) || defined(XP_MACOSX)
|
||||
NS_IMETHODIMP
|
||||
nsThebesRenderingContext::GetTextDimensionsInternal(const char* aString,
|
||||
PRInt32 aLength,
|
||||
|
||||
Reference in New Issue
Block a user