[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/src fringe.c
From: |
YAMAMOTO Mitsuharu |
Subject: |
[Emacs-diffs] emacs/src fringe.c |
Date: |
Sat, 25 Apr 2009 00:26:17 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: YAMAMOTO Mitsuharu <mituharu> 09/04/25 00:26:17
Modified files:
src : fringe.c
Log message:
(init_fringe_bitmap) [HAVE_X_WINDOWS && WORDS_BIG_ENDIAN]:
Swap bytes in short integer if fringe bitmap width > 8.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/fringe.c?cvsroot=emacs&r1=1.55&r2=1.56
Patches:
Index: fringe.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/fringe.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -b -r1.55 -r1.56
--- fringe.c 8 Jan 2009 03:15:40 -0000 1.55
+++ fringe.c 25 Apr 2009 00:26:16 -0000 1.56
@@ -1369,7 +1369,11 @@
| (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 */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs/src fringe.c,
YAMAMOTO Mitsuharu <=