diff options
| author | Glenn Morris | 2007-09-14 07:32:50 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-09-14 07:32:50 +0000 |
| commit | b935b43dccbea4869b820488aede5bd418ecf440 (patch) | |
| tree | b4ef3060d2aaa8778ec2363e2e90e05b61be3a45 /src/fringe.c | |
| parent | 4a46077fa2eac4f58347658e63792a9c7f8964ed (diff) | |
| download | emacs-b935b43dccbea4869b820488aede5bd418ecf440.tar.gz emacs-b935b43dccbea4869b820488aede5bd418ecf440.zip | |
(init_fringe_bitmap) <swap nibble>: Move to file scope.
Diffstat (limited to 'src/fringe.c')
| -rw-r--r-- | src/fringe.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/fringe.c b/src/fringe.c index 3241786a115..d9159ae3de5 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -1327,6 +1327,14 @@ If BITMAP overrides a standard fringe bitmap, the original bitmap is restored. | |||
| 1327 | On W32 and MAC (little endian), there's no need to do this. | 1327 | On W32 and MAC (little endian), there's no need to do this. |
| 1328 | */ | 1328 | */ |
| 1329 | 1329 | ||
| 1330 | #if defined (HAVE_X_WINDOWS) | ||
| 1331 | static unsigned char swap_nibble[16] = { | ||
| 1332 | 0x0, 0x8, 0x4, 0xc, /* 0000 1000 0100 1100 */ | ||
| 1333 | 0x2, 0xa, 0x6, 0xe, /* 0010 1010 0110 1110 */ | ||
| 1334 | 0x1, 0x9, 0x5, 0xd, /* 0001 1001 0101 1101 */ | ||
| 1335 | 0x3, 0xb, 0x7, 0xf}; /* 0011 1011 0111 1111 */ | ||
| 1336 | #endif /* HAVE_X_WINDOWS */ | ||
| 1337 | |||
| 1330 | void | 1338 | void |
| 1331 | init_fringe_bitmap (which, fb, once_p) | 1339 | init_fringe_bitmap (which, fb, once_p) |
| 1332 | int which; | 1340 | int which; |
| @@ -1336,11 +1344,6 @@ init_fringe_bitmap (which, fb, once_p) | |||
| 1336 | if (once_p || fb->dynamic) | 1344 | if (once_p || fb->dynamic) |
| 1337 | { | 1345 | { |
| 1338 | #if defined (HAVE_X_WINDOWS) | 1346 | #if defined (HAVE_X_WINDOWS) |
| 1339 | static unsigned char swap_nibble[16] | ||
| 1340 | = { 0x0, 0x8, 0x4, 0xc, /* 0000 1000 0100 1100 */ | ||
| 1341 | 0x2, 0xa, 0x6, 0xe, /* 0010 1010 0110 1110 */ | ||
| 1342 | 0x1, 0x9, 0x5, 0xd, /* 0001 1001 0101 1101 */ | ||
| 1343 | 0x3, 0xb, 0x7, 0xf }; /* 0011 1011 0111 1111 */ | ||
| 1344 | unsigned short *bits = fb->bits; | 1347 | unsigned short *bits = fb->bits; |
| 1345 | int j; | 1348 | int j; |
| 1346 | 1349 | ||