mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-29 01:42:32 +01:00
- Fixed wrong display of images with alpha in StaticGray and GrayScale visuals - Hermes lib is used now only to convert if the visual is TrueColor and no dithering is necesarry. This is because currently hermeslib doesn't support to convert to an indexed destination image (so it can't convert to PseudoColor, StaticGray and GreyScale visuals). It can convert to StaticColor since this visual uses masks as the TrueColor visual, but without dithering. Also hermeslib only supports dithering for just 2 combinations of source/destination bits/masks, none of which are useful for wrlib, so no conversion that needs dithering is currently done through hermeslib.
WindowMaker raster graphics library This library is used to manipulate images and convert them to a format that can be displayed through the X window system. Read the wraster.h header for an idea of what is available This Library is LGPL and Copyright (c) Alfredo K. Kojima <kojima@inf.ufrgs.br> The following environment variables control some parameters: RIMAGE_CACHE <integer> Is the maximum number of images to store in the internal cache. Default is 8 RIMAGE_CACHE_SIZE <integer> Is the size of the biggest image to store in the cache. Default is 4k (64x64) Porting ======= It should be fairly easy to port it to other environments (svgalib, libggi etc), probably only requiring wraster.h, context.c and convert.c to be changed. Note that the X specific code should be disabled in that case, including support for libXpm.