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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user