Commit 4e8231f3 authored by YAMAMOTO Mitsuharu's avatar YAMAMOTO Mitsuharu

(init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:

Swap bytes in short integer if fringe bitmap width > 8.
parent 65a099b6
2009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
* fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
Swap bytes in short integer if fringe bitmap width > 8.
2009-04-23 Kenichi Handa <handa@m17n.org>
* xfaces.c (Fx_list_fonts): If a font size is specified in
......
......@@ -1369,7 +1369,11 @@ init_fringe_bitmap (which, fb, once_p)
| (swap_nibble[(b>>4) & 0xf] << 8)
| (swap_nibble[(b>>8) & 0xf] << 4)
| (swap_nibble[(b>>12) & 0xf]));
*bits++ = (b >> (16 - fb->width));
b >>= (16 - fb->width);
#ifdef WORDS_BIG_ENDIAN
b = ((b >> 8) | (b << 8));
#endif
*bits++ = b;
}
}
#endif /* HAVE_X_WINDOWS */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment