diff options
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -5,9 +5,11 @@ #include "dive.h" #include "display.h" +int selected_dive = 0; + static gboolean expose_event(GtkWidget *widget, GdkEventExpose *event, gpointer data) { - struct dive *dive = dive_table.dives[0]; + struct dive *dive = dive_table.dives[selected_dive]; cairo_t *cr; int i; |