api fixes: use floats consistently
This commit is contained in:
parent
627c857f8b
commit
64f1b55d01
|
@ -30,9 +30,9 @@
|
||||||
|
|
||||||
static void
|
static void
|
||||||
hb_paint_push_transform_nil (hb_paint_funcs_t *funcs, void *paint_data,
|
hb_paint_push_transform_nil (hb_paint_funcs_t *funcs, void *paint_data,
|
||||||
float xx, float xy,
|
float xx, float yx,
|
||||||
float yx, float yy,
|
float xy, float yy,
|
||||||
float x0, float y0,
|
float dx, float dy,
|
||||||
void *user_data) {}
|
void *user_data) {}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -241,11 +241,11 @@ hb_paint_funcs_is_immutable (hb_paint_funcs_t *funcs)
|
||||||
|
|
||||||
void
|
void
|
||||||
hb_paint_push_transform (hb_paint_funcs_t *funcs, void *paint_data,
|
hb_paint_push_transform (hb_paint_funcs_t *funcs, void *paint_data,
|
||||||
float xx, float xy,
|
float xx, float yx,
|
||||||
float yx, float yy,
|
float xy, float yy,
|
||||||
float x0, float y0)
|
float dx, float dy)
|
||||||
{
|
{
|
||||||
funcs->push_transform (paint_data, xx, xy, yx, yy, x0, y0);
|
funcs->push_transform (paint_data, xx, yx, xy, yy, dx, dy);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
@ -88,12 +88,13 @@ typedef struct hb_color_line_t hb_color_line_t;
|
||||||
typedef struct {
|
typedef struct {
|
||||||
float offset;
|
float offset;
|
||||||
unsigned int color_index;
|
unsigned int color_index;
|
||||||
|
float alpha;
|
||||||
} hb_color_stop_t;
|
} hb_color_stop_t;
|
||||||
|
|
||||||
HB_EXTERN unsigned int
|
HB_EXTERN unsigned int
|
||||||
hb_color_line_get_color_stops (hb_color_line_t color_line,
|
hb_color_line_get_color_stops (hb_color_line_t *color_line,
|
||||||
unsigned int start,
|
unsigned int start,
|
||||||
unsigned int count,
|
unsigned int *count,
|
||||||
hb_color_stop_t *color_stops);
|
hb_color_stop_t *color_stops);
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
|
@ -313,9 +314,9 @@ hb_paint_funcs_set_pop_group_func (hb_paint_funcs_t *funcs,
|
||||||
|
|
||||||
HB_EXTERN void
|
HB_EXTERN void
|
||||||
hb_paint_push_transform (hb_paint_funcs_t *funcs, void *paint_data,
|
hb_paint_push_transform (hb_paint_funcs_t *funcs, void *paint_data,
|
||||||
float xx, float xy,
|
float xx, float yx,
|
||||||
float yx, float yy,
|
float xy, float yy,
|
||||||
float x0, float y0);
|
float dx, float dy);
|
||||||
|
|
||||||
HB_EXTERN void
|
HB_EXTERN void
|
||||||
hb_paint_pop_transform (hb_paint_funcs_t *funcs, void *paint_data);
|
hb_paint_pop_transform (hb_paint_funcs_t *funcs, void *paint_data);
|
||||||
|
|
|
@ -64,11 +64,11 @@ struct hb_paint_funcs_t
|
||||||
} *destroy;
|
} *destroy;
|
||||||
|
|
||||||
void push_transform (void *paint_data,
|
void push_transform (void *paint_data,
|
||||||
float xx, float xy,
|
float xx, float yx,
|
||||||
float yx, float yy,
|
float xy, float yy,
|
||||||
float x0, float y0)
|
float dx, float dy)
|
||||||
{ func.push_transform (this, paint_data,
|
{ func.push_transform (this, paint_data,
|
||||||
xx, xy, yx, yy, x0, y0,
|
xx, yx, xy, yy, dx, dy,
|
||||||
!user_data ? nullptr : user_data->push_transform); }
|
!user_data ? nullptr : user_data->push_transform); }
|
||||||
void pop_transform (void *paint_data)
|
void pop_transform (void *paint_data)
|
||||||
{ func.pop_transform (this, paint_data,
|
{ func.pop_transform (this, paint_data,
|
||||||
|
|
Loading…
Reference in New Issue