aboutsummaryrefslogtreecommitdiff
path: root/astro/wmglobe/files/patch-src_myconvert.c
diff options
context:
space:
mode:
Diffstat (limited to 'astro/wmglobe/files/patch-src_myconvert.c')
-rw-r--r--astro/wmglobe/files/patch-src_myconvert.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/astro/wmglobe/files/patch-src_myconvert.c b/astro/wmglobe/files/patch-src_myconvert.c
new file mode 100644
index 000000000000..b226f31cc958
--- /dev/null
+++ b/astro/wmglobe/files/patch-src_myconvert.c
@@ -0,0 +1,20 @@
+--- src/myconvert.c.orig 2020-09-16 20:04:28 UTC
++++ src/myconvert.c
+@@ -253,7 +253,7 @@ static RXImage *image2PseudoColor(RContext * ctx, RIma
+ const unsigned short bmask = rmask;
+ unsigned short *rtable, *gtable, *btable;
+ const int cpccpc = cpc * cpc;
+- unsigned char *data;
++ char *data;
+ int ofs;
+ /*register unsigned char maxrgb = 0xff; */
+
+@@ -420,7 +420,7 @@ static RXImage *image2GrayScale(RContext * ctx, RImage
+ const int cpc = ctx->attribs->colors_per_channel;
+ unsigned short gmask;
+ unsigned short *table;
+- unsigned char *data;
++ char *data;
+ int ofs;
+ /*register unsigned char maxrgb = 0xff; */
+