diff options
author | Gerd Moellmann <[email protected]> | 2000-03-19 17:00:51 +0000 |
---|---|---|
committer | Gerd Moellmann <[email protected]> | 2000-03-19 17:00:51 +0000 |
commit | 94ac875b4113108a02e2a2c15df16d77acadc557 (patch) | |
tree | da36b6c38bb119911ba8087c42bb2baf6f26f1ab /src/xfns.c | |
parent | b75c9917dfffa2da2f97c4e3f8ffa4753dfab06e (diff) |
* xfns.c (select_visual): Don't set dpyinfo->n_planes to the
number of bits per RGB because it's everywhere used as the depth
of the visual.
Diffstat (limited to 'src/xfns.c')
-rw-r--r-- | src/xfns.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/xfns.c b/src/xfns.c index 8ed9b7d98d..a08f74eccb 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -4622,20 +4622,7 @@ select_visual (dpyinfo) if (n_visuals != 1) fatal ("Can't get proper X visual info"); - if ((1 << vinfo->depth) == vinfo->colormap_size) - dpyinfo->n_planes = vinfo->depth; - else - { - int i = 0; - int n = vinfo->colormap_size - 1; - while (n) - { - n = n >> 1; - i++; - } - dpyinfo->n_planes = i; - } - + dpyinfo->n_planes = vinfo->depth; XFree ((char *) vinfo); } } |