brain/viz.cc
/* Redraw the screen from the surface. Note that the ::draw
 * signal receives a ready-to-be-used cairo_t that is already
 * clipped to only draw the exposed areas of the widget
 */
Redraw the screen from the surface. Note that the ::draw
signal receives a ready-to-be-used cairo_t that is already
clipped to only draw the exposed areas of the widget
Redraw the screen from the surface . Note that the :: draw signal receives a ready - to - be - used cairo_t that is already clipped to only draw the exposed areas of the widget
static gboolean
draw_cb(GtkWidget *widget,
        cairo_t   *cr,
        gpointer   data)
{
    guard _gg(mx);
    cairo_set_source_surface(cr, surface, 0, 0);
    cairo_paint(cr);
    return FALSE;
}
static gboolean draw_cb ( GtkWidget * widget , cairo_t * cr , gpointer data ) { guard _gg ( mx ) ; cairo_set_source_surface ( cr , surface , 0 , 0 ) ; cairo_paint ( cr ) ; return FALSE ; }
Redraw the screen from the surface.
Redraw the screen from the surface .
/*
    int ww, hh;
    gtk_window_get_size(GTK_WINDOW(window), &ww, &hh);
    cout << "window: " << ww << "," << hh << endl;
    */