aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYAMAMOTO Mitsuharu2009-04-25 00:26:34 +0000
committerYAMAMOTO Mitsuharu2009-04-25 00:26:34 +0000
commit4e8231f3a10834f0e47db9661abc670c2183c5e6 (patch)
tree208867dfb1f5ed5c5473c6929a9d351630a8ea31
parent65a099b6797eee713cb535ff4ed9d705863f5055 (diff)
downloademacs-4e8231f3a10834f0e47db9661abc670c2183c5e6.tar.gz
emacs-4e8231f3a10834f0e47db9661abc670c2183c5e6.zip
(init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
Swap bytes in short integer if fringe bitmap width > 8.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/fringe.c6
2 files changed, 10 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c87aeb182ee..ccd678ff8bf 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12009-04-25 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * fringe.c (init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
4 Swap bytes in short integer if fringe bitmap width > 8.
5
12009-04-23 Kenichi Handa <handa@m17n.org> 62009-04-23 Kenichi Handa <handa@m17n.org>
2 7
3 * xfaces.c (Fx_list_fonts): If a font size is specified in 8 * xfaces.c (Fx_list_fonts): If a font size is specified in
diff --git a/src/fringe.c b/src/fringe.c
index 9b592414532..41fc24d1150 100644
--- a/src/fringe.c
+++ b/src/fringe.c
@@ -1369,7 +1369,11 @@ init_fringe_bitmap (which, fb, once_p)
1369 | (swap_nibble[(b>>4) & 0xf] << 8) 1369 | (swap_nibble[(b>>4) & 0xf] << 8)
1370 | (swap_nibble[(b>>8) & 0xf] << 4) 1370 | (swap_nibble[(b>>8) & 0xf] << 4)
1371 | (swap_nibble[(b>>12) & 0xf])); 1371 | (swap_nibble[(b>>12) & 0xf]));
1372 *bits++ = (b >> (16 - fb->width)); 1372 b >>= (16 - fb->width);
1373#ifdef WORDS_BIG_ENDIAN
1374 b = ((b >> 8) | (b << 8));
1375#endif
1376 *bits++ = b;
1373 } 1377 }
1374 } 1378 }
1375#endif /* HAVE_X_WINDOWS */ 1379#endif /* HAVE_X_WINDOWS */