diff options
| author | YAMAMOTO Mitsuharu | 2017-02-19 13:42:05 +0900 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2017-02-19 13:42:05 +0900 |
| commit | e420e9f032dc3d73f89dee569c54fcf98618a50c (patch) | |
| tree | d9aa143aa8abb0524d7af8c5c2a5d2c4dad19717 /src/fringe.c | |
| parent | fe927ecfe45f66ec58d9e7cab6f2526fc87a6803 (diff) | |
| download | emacs-e420e9f032dc3d73f89dee569c54fcf98618a50c.tar.gz emacs-e420e9f032dc3d73f89dee569c54fcf98618a50c.zip | |
Fix fringe bitmap initialization on MS-Windows
* src/fringe.c (init_fringe_bitmap) [HAVE_NTGUI]: Fix initialization
of fb->bits. (Bug#25673)
Diffstat (limited to 'src/fringe.c')
| -rw-r--r-- | src/fringe.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/fringe.c b/src/fringe.c index c41a5d3f5e3..dbcd52be058 100644 --- a/src/fringe.c +++ b/src/fringe.c | |||
| @@ -1449,6 +1449,19 @@ init_fringe_bitmap (int which, struct fringe_bitmap *fb, int once_p) | |||
| 1449 | #endif /* not USE_CAIRO */ | 1449 | #endif /* not USE_CAIRO */ |
| 1450 | #endif /* HAVE_X_WINDOWS */ | 1450 | #endif /* HAVE_X_WINDOWS */ |
| 1451 | 1451 | ||
| 1452 | #ifdef HAVE_NTGUI | ||
| 1453 | unsigned short *bits = fb->bits; | ||
| 1454 | int j; | ||
| 1455 | for (j = 0; j < fb->height; j++) | ||
| 1456 | { | ||
| 1457 | unsigned short b = *bits; | ||
| 1458 | b <<= (16 - fb->width); | ||
| 1459 | #ifndef WORDS_BIGENDIAN | ||
| 1460 | b = ((b >> 8) | (b << 8)); | ||
| 1461 | #endif | ||
| 1462 | *bits++ = b; | ||
| 1463 | } | ||
| 1464 | #endif | ||
| 1452 | } | 1465 | } |
| 1453 | 1466 | ||
| 1454 | if (!once_p) | 1467 | if (!once_p) |