Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Jan 1999 00:30:10 +0000
From:      Mark Ovens <marko@uk.radan.com>
To:        questions@FreeBSD.ORG
Subject:   "Not enough colours" error in X
Message-ID:  <369BE912.D8C39575@uk.radan.com>

next in thread | raw e-mail | index | archive | help
Some programs fail to run in X complaining about there being not enough
colours, but I'm running at 24 bpp using an ATI Xpert@Work 4MB (Mach 64
server).

Below are a couple of examples and the output of xdpyinfo. One thing
about xdpyinfo's output is the reference to available colourmaps. I
thought colourmaps were only required when running at 256 colours
(8bpp).

Can anyone explain what's causing this, and how to fix it.

TIA

marder-1:/usr/radan{58}% flying -pool
flying:
	Game of Pool/Snooker/Carrom/Hockey/Curling for X-Windows
	$Revision: 6.20 $ $Date: 1995/10/03 13:26:57 $ Author: Helmut Hoenig
not enough colors: I need 10 colors + 4 planes.

marder-1:/usr/radan{59}% xcoloredit
Error: xcoloredit: Not enough colormap entries available

marder-1:/usr/radan{60}% xdpyinfo
name of display:    :0.0
version number:    11.0
vendor string:    The XFree86 Project, Inc
vendor release number:    3330
maximum request size:  4194300 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    2
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 134
focus:  window 0x1c00015, revert to Parent
number of extensions:    19
    BIG-REQUESTS
    DOUBLE-BUFFER
    DPMS
    LBX
    MIT-SCREEN-SAVER
    MIT-SHM
    MIT-SUNDRY-NONSTANDARD
    RECORD
    SECURITY
    SHAPE
    SYNC
    XC-APPGROUP
    XC-MISC
    XFree86-DGA
    XFree86-Misc
    XFree86-VidModeExtension
    XInputExtension
    XKEYBOARD
    XTEST
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1024x768 pixels (347x260 millimeters)
  resolution:    75x75 dots per inch
  depths (1):    24
  root window id:    0x25
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x21
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store YES, save-unders YES
  largest cursor:    64x64
  current input event mask:    0x158201d
    KeyPressMask             ButtonPressMask         
ButtonReleaseMask        
    EnterWindowMask          ButtonMotionMask        
SubstructureNotifyMask   
    SubstructureRedirectMask PropertyChangeMask      
OwnerGrabButtonMask      
  number of visuals:    1
  default visual id:  0x20
  visual:
    visual id:    0x20
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits
-- 
  Trust the computer industry to shorten Year 2000 to Y2K. It
  was this thinking that caused the problem in the first place.

Mark Ovens, CNC Applications Engineer, Radan Computational Ltd
Sheet Metal CAD/CAM Solutions
mailto:marko@uk.radan.com    http://www.radan.com


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?369BE912.D8C39575>