diff options
author | Keith Packard <keithp@keithp.com> | 2001-07-16 19:48:00 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2001-07-16 19:48:00 +0000 |
commit | 35d8b5f44269c97497c73d3638b8f0345757c04c (patch) | |
tree | 3ec8dba24eb55a988e5326c29eff78e233bfb4a7 /hw/kdrive | |
parent | 090a429573dfb965ebc4ea8ea57e3bef5f9a8539 (diff) |
kdrive/fbdev: fix static color case
Diffstat (limited to 'hw/kdrive')
-rw-r--r-- | hw/kdrive/fbdev/fbdev.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/kdrive/fbdev/fbdev.c b/hw/kdrive/fbdev/fbdev.c index 39e17410b..50daf14a6 100644 --- a/hw/kdrive/fbdev/fbdev.c +++ b/hw/kdrive/fbdev/fbdev.c @@ -21,7 +21,7 @@ * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR * PERFORMANCE OF THIS SOFTWARE. */ -/* $XFree86: xc/programs/Xserver/hw/kdrive/fbdev/fbdev.c,v 1.22 2001/06/21 00:58:51 keithp Exp $ */ +/* $XFree86: xc/programs/Xserver/hw/kdrive/fbdev/fbdev.c,v 1.24 2001/07/11 16:42:17 keithp Exp $ */ #include "fbdev.h" @@ -668,6 +668,8 @@ fbdevCreateColormap (ColormapPtr pmap) pdefs = ALLOCATE_LOCAL (nent * sizeof (xColorItem)); if (!pdefs) return FALSE; + for (i = 0; i < nent; i++) + pdefs[i].pixel = i; fbdevGetColors (pScreen, 0, nent, pdefs); for (i = 0; i < nent; i++) { |