screen = gdk_drawable_get_screen (gpmap); gdk_drawable_get_size (GDK_DRAWABLE(gpmap), &width, &height); depth = gdk_drawable_get_depth (GDK_DRAWABLE(gpmap));if(depth <=24) cmap = gdk_screen_get_rgb_colormap (screen);elsecmap = gdk_screen_get_rgba_colormap (screen); pixbuf = ...
glLoadIdentity();gdk_gl_drawable_gl_end(gldrawable);/* pthread_mutex_unlock (&theRender_mutex);*/gdk_window_invalidate_rect (gtk_widget_get_parent_window (widget), &widget->allocation, TRUE); gdk_window_process_updates (gtk_widget_get_parent_window (widget), TRUE); }returnTRUE; } 开发者...
IA__gdk_drawable_get_size: assertion 'GDK_IS_DRAWABLE (drawable)' failed ``` 原因: 输入法冲突 解决办法: apt-get remove fcitx-frontend-gtk2 未解决 原文: https://www.cnblogs.com/moonwolf009/archive/2013/01/04/2853418.html
gtk_paint_layout(image->style, pixmap, GTK_WIDGET_STATE(image), FALSE, &area, image,"about", image->allocation.x + offset_x, about_y, layout);gdk_draw_drawable(image->window, gc, pixmap,0,0,0,0, image->allocation.width, image->allocation.height); g_object_unref(layout);returnTRUE...
gdk_gl_drawable_gl_end( gldrawable );/*// now invalidate! Rect rect; rect.origin.x = 0;//allocation.x; rect.origin.y = 0;//allocation.y; rect.size.width = allocation.width; rect.size.height = allocation.height; _chisel_native_view_invalidate_rect( (native_handle)widget, rect );*...