aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGlenn Morris2007-09-14 07:33:27 +0000
committerGlenn Morris2007-09-14 07:33:27 +0000
commit2e4e5023eda45a6b6a806e24ed42c36cce47a3fa (patch)
tree5d00322691176b9069e9b8a08f98e0749c41411e /src
parent28f60c3d3902e30a198c03bf5cd01b7d7a9511ae (diff)
downloademacs-2e4e5023eda45a6b6a806e24ed42c36cce47a3fa.tar.gz
emacs-2e4e5023eda45a6b6a806e24ed42c36cce47a3fa.zip
(init_fringe_bitmap) <swap nibble>: Move to file scope.
Diffstat (limited to 'src')
-rw-r--r--src/fringe.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/fringe.c b/src/fringe.c
index 991575da39b..70e14f51f5f 100644
--- a/src/fringe.c
+++ b/src/fringe.c
@@ -1330,6 +1330,14 @@ If BITMAP overrides a standard fringe bitmap, the original bitmap is restored.
1330 On W32 and MAC (little endian), there's no need to do this. 1330 On W32 and MAC (little endian), there's no need to do this.
1331*/ 1331*/
1332 1332
1333#if defined (HAVE_X_WINDOWS)
1334static unsigned char swap_nibble[16] = {
1335 0x0, 0x8, 0x4, 0xc, /* 0000 1000 0100 1100 */
1336 0x2, 0xa, 0x6, 0xe, /* 0010 1010 0110 1110 */
1337 0x1, 0x9, 0x5, 0xd, /* 0001 1001 0101 1101 */
1338 0x3, 0xb, 0x7, 0xf}; /* 0011 1011 0111 1111 */
1339#endif /* HAVE_X_WINDOWS */
1340
1333void 1341void
1334init_fringe_bitmap (which, fb, once_p) 1342init_fringe_bitmap (which, fb, once_p)
1335 int which; 1343 int which;
@@ -1339,11 +1347,6 @@ init_fringe_bitmap (which, fb, once_p)
1339 if (once_p || fb->dynamic) 1347 if (once_p || fb->dynamic)
1340 { 1348 {
1341#if defined (HAVE_X_WINDOWS) 1349#if defined (HAVE_X_WINDOWS)
1342 static unsigned char swap_nibble[16]
1343 = { 0x0, 0x8, 0x4, 0xc, /* 0000 1000 0100 1100 */
1344 0x2, 0xa, 0x6, 0xe, /* 0010 1010 0110 1110 */
1345 0x1, 0x9, 0x5, 0xd, /* 0001 1001 0101 1101 */
1346 0x3, 0xb, 0x7, 0xf }; /* 0011 1011 0111 1111 */
1347 unsigned short *bits = fb->bits; 1350 unsigned short *bits = fb->bits;
1348 int j; 1351 int j;
1349 1352