mirror of
git://projects.qi-hardware.com/eda-tools.git
synced 2024-11-23 01:14:04 +02:00
eeshow/cro.h (cro_img_end, cro_img_write, cro_canvas_end): don't need void *
Since we don't call these functions through gfx_ops, we don't need a void pointer.
This commit is contained in:
parent
76c1f916df
commit
15d434294d
10
eeshow/cro.c
10
eeshow/cro.c
@ -415,9 +415,8 @@ static void cr_pdf_end(void *ctx)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
uint32_t *cro_img_end(void *ctx, int *w, int *h, int *stride)
|
uint32_t *cro_img_end(struct cro_ctx *cc, int *w, int *h, int *stride)
|
||||||
{
|
{
|
||||||
struct cro_ctx *cc = ctx;
|
|
||||||
uint32_t *data;
|
uint32_t *data;
|
||||||
|
|
||||||
end_common(cc, w, h);
|
end_common(cc, w, h);
|
||||||
@ -444,10 +443,8 @@ uint32_t *cro_img_end(void *ctx, int *w, int *h, int *stride)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void cro_img_write(void *ctx, const char *name)
|
void cro_img_write(struct cro_ctx *cc, const char *name)
|
||||||
{
|
{
|
||||||
struct cro_ctx *cc = ctx;
|
|
||||||
|
|
||||||
if (name)
|
if (name)
|
||||||
cairo_surface_write_to_png(cc->s, name);
|
cairo_surface_write_to_png(cc->s, name);
|
||||||
else
|
else
|
||||||
@ -456,9 +453,8 @@ void cro_img_write(void *ctx, const char *name)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void cro_canvas_end(void *ctx)
|
void cro_canvas_end(struct cro_ctx *cc)
|
||||||
{
|
{
|
||||||
struct cro_ctx *cc = ctx;
|
|
||||||
int w, h;
|
int w, h;
|
||||||
|
|
||||||
end_common(cc, &w, &h);
|
end_common(cc, &w, &h);
|
||||||
|
@ -31,10 +31,10 @@ extern const struct gfx_ops cro_pdf_ops;
|
|||||||
#define cro_canvas_ops cro_png_ops /* just don't call cro_canvas_ops.end */
|
#define cro_canvas_ops cro_png_ops /* just don't call cro_canvas_ops.end */
|
||||||
|
|
||||||
|
|
||||||
uint32_t *cro_img_end(void *ctx, int *w, int *h, int *stride);
|
uint32_t *cro_img_end(struct cro_ctx *cc, int *w, int *h, int *stride);
|
||||||
void cro_img_write(void *ctx, const char *name);
|
void cro_img_write(struct cro_ctx *cc, const char *name);
|
||||||
|
|
||||||
void cro_canvas_end(void *ctx);
|
void cro_canvas_end(struct cro_ctx *cc);
|
||||||
void cro_canvas_draw(struct cro_ctx *cc, cairo_t *cr);
|
void cro_canvas_draw(struct cro_ctx *cc, cairo_t *cr);
|
||||||
|
|
||||||
#endif /* !CRO_H */
|
#endif /* !CRO_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user