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