Hi, I'm trying to change the colormap only for a widget but I think that exists only one surface for rendering. I don't understand why during the inizialization the directfb doesn't create a surface that matches my frame buffer setting. Example: If I set RGB16 in the directfbrc, I hope that the surface has the same mapping. The problem can not be solved by setting to RGB16 because other things don't work correctly.
// window visual = gdk_directfb_visual_by_format (DSPF_RGB16); cmap = gdk_colormap_new (visual, FALSE); gtk_widget_push_colormap (cmap); main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); If I set this one my gdk_draw_pixmap is fast, but text and icons have trouble otherwise the application is slow. Is there an answer? Regards Michael > I have been warned some time ago by mike that surface format conversion > should be avoided because still unfinished in gdkdfb and cairodfb: i > guess the eror you're reporting has to do with that. > > regards > > Attilio > > Michael Trimarchi ha scritto: > >> Hi, >> I have the same problem in the bitmap rendering >> (gtktetris:395): Gdk-WARNING **: gdkpixbuf-drawable.c:1257: Depth of the >> source drawable is 16 where as the visual depth of the colormap passed is 32 >> >> (gtktetris:395): Gdk-WARNING **: gdkpixbuf-drawable.c:1257: Depth of the >> source drawable is 16 where as the visual depth of the colormap passed is 32 >> >> (gtktetris:395): Gdk-WARNING **: gdkpixbuf-drawable.c:1257: Depth of the >> source drawable is 16 where as the visual depth of the colormap passed is 32 >> >> (gtktetris:395): Gdk-WARNING **: gdkpixbuf-drawable.c:1257: Depth of the >> source drawable is 16 where as the visual depth of the colormap passed is 32 >> >> Is releated to a wrong initialization? >> Regards Michael >> >> >>> Hi all, >>> to speedup my tetris application, I'm using the >>> gdk_directfb_visual_by_format function but cairo has some trouble with >>> font and icon. >>> >>> // window >>> visual = gdk_directfb_visual_by_format (DSPF_RGB16); >>> cmap = gdk_colormap_new (visual, FALSE); >>> gtk_widget_push_colormap (cmap); >>> main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); >>> >>> How can I solve this problem? >>> >>> Regards Michael >>> >>> >>> >>> >>> _______________________________________________ >>> directfb-dev mailing list >>> [email protected] >>> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev >>> >>> >>> >> _______________________________________________ >> directfb-dev mailing list >> [email protected] >> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev >> >> > > > _______________________________________________ > directfb-dev mailing list > [email protected] > http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev > > _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
