X-Git-Url: http://pileus.org/git/?p=grits;a=blobdiff_plain;f=src%2Fgis%2Fgis-opengl.c;h=bdcaf404bf0c59da1ce6a96cb154c1dc3d757fc7;hp=acf12eb0238dc9058399ba586408840159f63f50;hb=e1ff13276e99a6707586fe43904d5d432cdcb1fe;hpb=c47ac93a326b5bceb7d31ae3d27710e517f955f4 diff --git a/src/gis/gis-opengl.c b/src/gis/gis-opengl.c index acf12eb..bdcaf40 100644 --- a/src/gis/gis-opengl.c +++ b/src/gis/gis-opengl.c @@ -137,8 +137,8 @@ gboolean on_configure(GtkWidget *drawing, GdkEventConfigure *event, GisOpenGL *s gis_view_get_location(self->view, &x, &y, &z); /* Window is at 500 m from camera */ - double width = drawing->allocation.width; - double height = drawing->allocation.height; + double width = GTK_WIDGET(self->drawing)->allocation.width; + double height = GTK_WIDGET(self->drawing)->allocation.height; glViewport(0, 0, width, height); @@ -198,7 +198,6 @@ GisOpenGL *gis_opengl_new(GisWorld *world, GisView *view, GtkDrawingArea *drawin self->world = world; self->view = view; self->drawing = drawing; - g_message("drawing = %p", drawing); g_object_ref(world); g_object_ref(view); g_object_ref(drawing); @@ -235,7 +234,6 @@ void gis_opengl_begin(GisOpenGL *self) { g_assert(GIS_IS_OPENGL(self)); - g_message("drawing = %p", self->drawing); GdkGLContext *glcontext = gtk_widget_get_gl_context(GTK_WIDGET(self->drawing)); GdkGLDrawable *gldrawable = gtk_widget_get_gl_drawable(GTK_WIDGET(self->drawing));