Rename draw_plane to blit_plane
This commit is contained in:
parent
96087d17a1
commit
99fc7ce405
1 changed files with 3 additions and 3 deletions
6
visor.c
6
visor.c
|
@ -203,7 +203,7 @@ void color_lookup(int *r, int *g, int *b, double mu)
|
|||
void print_usage(FILE *stream);
|
||||
static void app_activate(GApplication *app);
|
||||
|
||||
void draw_plane(GtkDrawingArea *da, cairo_t *cr, int width, int height, gpointer data);
|
||||
void blit_plane(GtkDrawingArea *da, cairo_t *cr, int width, int height, gpointer data);
|
||||
void plane_resize(GtkWidget *widget);
|
||||
void create_surface(GtkWidget *widget);
|
||||
|
||||
|
@ -324,7 +324,7 @@ static void app_activate(GApplication *app)
|
|||
gtk_widget_set_hexpand(GTK_WIDGET(da), true);
|
||||
gtk_drawing_area_set_content_width(GTK_DRAWING_AREA(da), 300);
|
||||
gtk_drawing_area_set_content_height(GTK_DRAWING_AREA(da), 200);
|
||||
gtk_drawing_area_set_draw_func(GTK_DRAWING_AREA(da), draw_plane, NULL, NULL);
|
||||
gtk_drawing_area_set_draw_func(GTK_DRAWING_AREA(da), blit_plane, NULL, NULL);
|
||||
g_signal_connect(da, "resize", G_CALLBACK(plane_resize), NULL);
|
||||
|
||||
// TODO: implement later drag = gtk_gesture_drag_new();
|
||||
|
@ -336,7 +336,7 @@ static void app_activate(GApplication *app)
|
|||
gtk_window_present(GTK_WINDOW(win));
|
||||
}
|
||||
|
||||
void draw_plane(GtkDrawingArea *da, cairo_t *cr, int width, int height, gpointer data)
|
||||
void blit_plane(GtkDrawingArea *da, cairo_t *cr, int width, int height, gpointer data)
|
||||
{
|
||||
(void) da;
|
||||
(void) width;
|
||||
|
|
Loading…
Add table
Reference in a new issue