[main] Fix compiler warnings
This commit is contained in:
parent
35190dc961
commit
a428c1193c
26
src/main.cc
26
src/main.cc
|
@ -136,41 +136,41 @@ struct user_data_t
|
|||
};
|
||||
|
||||
static void
|
||||
move_to (float to_x, float to_y, user_data_t &user_data)
|
||||
move_to (float to_x, float to_y, user_data_t *user_data)
|
||||
{
|
||||
fprintf (user_data.f, "M%g,%g", to_x, user_data.ascender - to_y);
|
||||
fprintf (user_data->f, "M%g,%g", to_x, user_data->ascender - to_y);
|
||||
}
|
||||
|
||||
static void
|
||||
line_to (float to_x, float to_y, user_data_t &user_data)
|
||||
line_to (float to_x, float to_y, user_data_t *user_data)
|
||||
{
|
||||
fprintf (user_data.f, "L%g,%g", to_x, user_data.ascender - to_y);
|
||||
fprintf (user_data->f, "L%g,%g", to_x, user_data->ascender - to_y);
|
||||
}
|
||||
|
||||
static void
|
||||
quadratic_to (float control_x, float control_y,
|
||||
float to_x, float to_y,
|
||||
user_data_t &user_data)
|
||||
user_data_t *user_data)
|
||||
{
|
||||
fprintf (user_data.f, "Q%g,%g %g,%g", control_x, user_data.ascender - control_y,
|
||||
to_x, user_data.ascender - to_y);
|
||||
fprintf (user_data->f, "Q%g,%g %g,%g", control_x, user_data->ascender - control_y,
|
||||
to_x, user_data->ascender - to_y);
|
||||
}
|
||||
|
||||
static void
|
||||
cubic_to (float control1_x, float control1_y,
|
||||
float control2_x, float control2_y,
|
||||
float to_x, float to_y,
|
||||
user_data_t &user_data)
|
||||
user_data_t *user_data)
|
||||
{
|
||||
fprintf (user_data.f, "C%g,%g %g,%g %g,%g", control1_x, user_data.ascender - control1_y,
|
||||
control2_x, user_data.ascender - control2_y,
|
||||
to_x, user_data.ascender - to_y);
|
||||
fprintf (user_data->f, "C%g,%g %g,%g %g,%g", control1_x, user_data->ascender - control1_y,
|
||||
control2_x, user_data->ascender - control2_y,
|
||||
to_x, user_data->ascender - to_y);
|
||||
}
|
||||
|
||||
static void
|
||||
close_path (user_data_t &user_data)
|
||||
close_path (user_data_t *user_data)
|
||||
{
|
||||
fprintf (user_data.f, "Z");
|
||||
fprintf (user_data->f, "Z");
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in New Issue