Fix FTBFS reported in issue #67

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 24920570b1)
r14.1.x r14.1.2
Michele Calgaro 7 months ago
parent 0946bf474f
commit 72ca29618e
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -11097,9 +11097,9 @@ namespace cimg_library {
// INNER CLASS used by function CImg<>::draw_fill()
template<typename T1,typename T2> struct _draw_fill {
const T1 *const color;
const float sigma,opacity;
const CImg<T1> value;
const T1 *color;
float sigma,opacity;
CImg<T1> value;
CImg<T2> region;
_draw_fill(const CImg<T1>& img,const int x,const int y,const int z,

@ -518,7 +518,11 @@ rgb565amsb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *
bpl = image->bytes_per_line;
for (yy = 0; yy < height; yy++) {
#ifdef LITTLE
s = srow;
#else
s = (unsigned short *) srow;
#endif
o = (unsigned int *) orow;
for (xx = 0; xx < width; xx ++) {
unsigned int data;
@ -641,7 +645,11 @@ rgb555msb (XImage *image, unsigned char *pixels, int rowstride, xlib_colormap *c
bpl = image->bytes_per_line;
for (yy = 0; yy < height; yy++) {
#ifdef LITTLE
s = srow;
#else
s = (unsigned int *) srow;
#endif
o = (unsigned short *) orow;
for (xx = 1; xx < width; xx += 2) {
unsigned int data;

Loading…
Cancel
Save