1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-08 01:15:56 +01:00

bug fixes, performance enhancement for image rendering

This commit is contained in:
kojima
1999-04-29 23:05:16 +00:00
parent d6f2dd663e
commit 8f68cfd8cd
19 changed files with 371 additions and 192 deletions

View File

@@ -714,7 +714,10 @@ wScreenInit(int screen_number)
/* screen descriptor for raster graphic library */
rattr.flags = RC_RenderMode | RC_ColorsPerChannel;
rattr.render_mode = wPreferences.no_dithering?RM_MATCH:RM_DITHER;
rattr.render_mode = wPreferences.no_dithering
? RBestMatchRendering
: RDitheredRendering;
rattr.colors_per_channel = wPreferences.cmap_size;
if (rattr.colors_per_channel<2)
rattr.colors_per_channel = 2;