1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 21:08:08 +01:00

- added standard colormap support

- made icon images scale in the same proportion as the tiles
This commit is contained in:
kojima
1999-11-16 00:16:07 +00:00
parent 33b8c225e1
commit 7698ba2f1c
2 changed files with 16 additions and 2 deletions

View File

@@ -736,15 +736,19 @@ wScreenInit(int screen_number)
XDefineCursor(dpy, scr->root_win, wCursor[WCUR_DEFAULT]);
/* screen descriptor for raster graphic library */
rattr.flags = RC_RenderMode | RC_ColorsPerChannel;
rattr.flags = RC_RenderMode | RC_ColorsPerChannel | RC_StandardColormap;
rattr.render_mode = wPreferences.no_dithering
? RBestMatchRendering
: RDitheredRendering;
/* if the std colormap stuff works ok, this will be ignored */
rattr.colors_per_channel = wPreferences.cmap_size;
if (rattr.colors_per_channel<2)
rattr.colors_per_channel = 2;
/* will only be accounted for in PseudoColor */
rattr.standard_colormap_mode = RCreateStdColormap;
if (wVisualID>=0) {
rattr.flags |= RC_VisualID;
rattr.visualid = wVisualID;