projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-19990215-1
[rocksndiamonds.git]
/
src
/
image.c
diff --git
a/src/image.c
b/src/image.c
index c2785a2443512a6374b6058b44ff981196b4d5bb..09a75fcee078a7eb6628042246a6acd67ecef6be 100644
(file)
--- a/
src/image.c
+++ b/
src/image.c
@@
-12,6
+12,7
@@
***********************************************************/
#include "image.h"
***********************************************************/
#include "image.h"
+#include "pcx.h"
#include "misc.h"
/* exclude all except newImage() and freeImage() */
#include "misc.h"
/* exclude all except newImage() and freeImage() */
@@
-75,7
+76,7
@@
static Pixmap Image_to_Mask(Image *image, Display *display, Window window)
dst_ptr += bytes_per_row; /* continue with leftmost byte of next row */
}
dst_ptr += bytes_per_row; /* continue with leftmost byte of next row */
}
- mask_pixmap = XCreateBitmapFromData(display, window, mask_data,
+ mask_pixmap = XCreateBitmapFromData(display, window,
(char *)
mask_data,
image->width, image->height);
free(mask_data);
image->width, image->height);
free(mask_data);
@@
-374,7
+375,7
@@
XImageInfo *Image_to_Pixmap(Display *display, int screen, Visual *visual,
ximage->byte_order = MSBFirst;
src_ptr = image->data;
ximage->byte_order = MSBFirst;
src_ptr = image->data;
- dst_ptr = ximage->data;
+ dst_ptr =
(byte *)
ximage->data;
switch (visual->class)
{
switch (visual->class)
{