all repos — openbox @ 044c8ae416da315a7a111727c2f5dfc769c15125

openbox fork - make it a bit more like ryudo

start of pseudo init
Dana Jansens danakj@orodu.net
commit

044c8ae416da315a7a111727c2f5dfc769c15125

parent

5e0fc865a8b6063cbcb3451fbac4cdbe841889df

2 files changed, 2 insertions(+), 3 deletions(-)

jump to
M otk/pseudorendercontrol.ccotk/pseudorendercontrol.cc

@@ -29,7 +29,7 @@

_cpc = 4; // XXX THIS SHOULD BE A USER OPTION _ncolors = _cpc * _cpc * _cpc; - if (_cpc < 2 || ncolors > 1 << depth) { + if (_cpc < 2 || _ncolors > 1 << depth) { fprintf(stderr, _("PseudoRenderControl: Invalid colormap size. Using maximum size available.\n"));
M otk/pseudorendercontrol.hhotk/pseudorendercontrol.hh

@@ -17,10 +17,9 @@ unsigned char _blue_color_table[256];

int _cpc; // colors-per-channel: must be a value between [2,6] int _bpp; // bits-per-pixel + int _ncolors; // number of allocated colors, size of the XColor array - // These are only used for !TrueColor visuals XColor *_colors; - int _ncolors; virtual void reduceDepth(Surface &sf, XImage *im) const;