After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 75497 - need colormap for bitmaps
need colormap for bitmaps
Status: RESOLVED WONTFIX
Product: gtk+
Classification: Platform
Component: Backend: X11
2.0.x
Other Linux
: Normal enhancement
: Medium API
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2002-03-19 19:32 UTC by Owen Taylor
Modified: 2010-09-27 04:18 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Owen Taylor 2002-03-19 19:32:34 UTC
Some drawing operations... gdk_draw_layout(), gdk_draw_pixbuf(),
require a colormap, because either they may be done using
RENDER or they simply need to interpret colors.

Currently, we don't have a colormap for bitmaps, unless the screen's
has a real depth-1 visual, so it is impossible to use these functions
on bitmaps.

So, we should add a fake colormap/visual for bitmaps that has
0 = black, 1 = white, and a function:

 gdk_colormap_get_bitmap ()

That retrieves it. We might want to set this colormap automatically
on bitmaps created in contexts where a real colormap won't
be set on them.

[ This relates to the longer term plan of creating
  fake colormaps/visuals for all RENDER picture formats ]
Comment 1 Matthias Clasen 2005-02-03 14:37:55 UTC
*** Bug 165706 has been marked as a duplicate of this bug. ***
Comment 2 Matthias Clasen 2010-09-27 04:18:00 UTC
 colormaps and bitmaps are no more