Fix a display issue with the wires

This commit is contained in:
Aaron Mueller 2011-12-07 21:42:42 +01:00 committed by Kai Lauterbach
parent 37608b6b24
commit b92b8953a6
4 changed files with 9 additions and 3 deletions

View file

@ -92,8 +92,8 @@ void display() {
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
setScene(); setScene();
drawLEDs(RENDER_MODE);
drawWires(); drawWires();
drawLEDs(RENDER_MODE);
} }
// Picking function // Picking function

View file

@ -45,3 +45,8 @@ void on_drawing_area_realize(GtkWidget *widget, gpointer data) {
gdk_gl_drawable_gl_end(glDrawable); gdk_gl_drawable_gl_end(glDrawable);
} }
void on_drawing_area_key_press_event(GtkWidget *widget, gpointer data) {
g_print("pressed");
}

View file

@ -101,6 +101,7 @@
<property name="height_request">500</property> <property name="height_request">500</property>
<property name="visible">True</property> <property name="visible">True</property>
<signal name="expose_event" handler="on_drawing_area_expose_event"/> <signal name="expose_event" handler="on_drawing_area_expose_event"/>
<signal name="key_press_event" handler="on_drawing_area_key_press_event"/>
<signal name="realize" handler="on_drawing_area_realize" after="yes"/> <signal name="realize" handler="on_drawing_area_realize" after="yes"/>
<signal name="configure_event" handler="on_drawing_area_configure_event" after="yes"/> <signal name="configure_event" handler="on_drawing_area_configure_event" after="yes"/>
</widget> </widget>