1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-03-19 17:23:33 +01:00

WRaster: add function to save image in memory

This patch adds the RSaveRawImage() function to the WRaster lib
to be able to save image structure in memory.
The WRaster lib version is bumped.
This commit is contained in:
David Maciejak
2026-01-17 16:09:37 -05:00
committed by Carlos R. Mafra
parent 72942267aa
commit 7cfdf6bd68
8 changed files with 266 additions and 42 deletions

View File

@@ -162,6 +162,11 @@ RImage *RLoadImage(RContext *context, const char *file, int index)
assert(file != NULL);
/* just to suppress the compilation warning as index is only used with TIFF and GIF */
#if !defined(USE_TIFF) && !defined(USE_GIF)
(void)index;
#endif
if (RImageCacheSize < 0)
init_cache();