Search
j0ke.net Open Build Service
>
Projects
>
virtualization
>
gtk-vnc
> gtk-vnc-0.3.4-render.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File gtk-vnc-0.3.4-render.patch of Package gtk-vnc
diff -r 6f18ca44fbe3 src/vncdisplay.c --- a/src/vncdisplay.c Thu Apr 03 12:57:25 2008 -0300 +++ b/src/vncdisplay.c Thu Apr 03 14:23:16 2008 -0400 @@ -340,7 +340,7 @@ glTexCoord2f(0,0); glVertex3f(wx, wy+wh, 0); glTexCoord2f(rx,0); glVertex3f(wx+ww, wy+wh, 0); glTexCoord2f(rx,ry); glVertex3f(wx+ww, wy, 0); - glEnd(); + glEnd(); glDisable(GL_TEXTURE_2D); glFlush(); gdk_gl_drawable_gl_end(priv->gl_drawable); @@ -853,8 +853,8 @@ VncDisplayPrivate *priv = obj->priv; GdkVisual *visual; - visual = gdk_screen_get_system_visual(gdk_screen_get_default()); - + visual = gdk_drawable_get_visual(GTK_WIDGET(obj)->window); + priv->image = gdk_image_new(GDK_IMAGE_FASTEST, visual, width, height); GVNC_DEBUG("Visual mask: %3d %3d %3d\n shift: %3d %3d %3d\n", visual->red_mask, @@ -1170,8 +1170,8 @@ { VncDisplayPrivate *priv = obj->priv; - if (priv->allow_scaling && - (priv->fb.height != width || + if (priv->allow_scaling && + (priv->fb.width != width || priv->fb.height != height)) scale_display(obj, width, height); else if (priv->gl_enabled) { @@ -2010,13 +2010,6 @@ GtkObject *obj = GTK_OBJECT(display); GtkWidget *widget = GTK_WIDGET(display); VncDisplayPrivate *priv; -#if WITH_GTKGLEXT - static const int attrib[] = { GDK_GL_RGBA, - GDK_GL_RED_SIZE, 1, - GDK_GL_GREEN_SIZE, 1, - GDK_GL_BLUE_SIZE, 1, - GDK_GL_ATTRIB_LIST_NONE }; -#endif g_signal_connect(obj, "expose-event", G_CALLBACK(expose_event), NULL); @@ -2073,7 +2066,8 @@ #if WITH_GTKGLEXT if (gtk_gl_init_check(NULL, NULL)) { - priv->gl_config = gdk_gl_config_new(attrib); + priv->gl_config = gdk_gl_config_new_by_mode(GDK_GL_MODE_RGB | + GDK_GL_MODE_DEPTH); if (!gtk_widget_set_gl_capability(widget, priv->gl_config, NULL,