ui/gtk/draw_cairo.c

branch
newapi
changeset 300
2f924f7ca901
parent 299
48763a9d19a7
equal deleted inserted replaced
299:48763a9d19a7 300:2f924f7ca901
60 60
61 #if UI_GTK3 61 #if UI_GTK3
62 gboolean ui_drawingarea_expose(GtkWidget *w, cairo_t *cr, void *data) { 62 gboolean ui_drawingarea_expose(GtkWidget *w, cairo_t *cr, void *data) {
63 int width = gtk_widget_get_allocated_width(w); 63 int width = gtk_widget_get_allocated_width(w);
64 int height = gtk_widget_get_allocated_height(w); 64 int height = gtk_widget_get_allocated_height(w);
65 ui_drawingarea_draw(w, cr, width, height, data); 65 ui_drawingarea_draw(GTK_DRAWING_AREA(w), cr, width, height, data);
66 return FALSE; 66 return FALSE;
67 } 67 }
68 #endif 68 #endif
69 #ifdef UI_GTK2 69 #ifdef UI_GTK2
70 gboolean ui_canvas_expose(GtkWidget *w, GdkEventExpose *e, void *data) { 70 gboolean ui_canvas_expose(GtkWidget *w, GdkEventExpose *e, void *data) {

mercurial