mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
Fix fringe bitmap initialization on MS-Windows
* src/fringe.c (init_fringe_bitmap) [HAVE_NTGUI]: Fix initialization of fb->bits. (Bug#25673)
This commit is contained in:
parent
fe927ecfe4
commit
e420e9f032
1 changed files with 13 additions and 0 deletions
13
src/fringe.c
13
src/fringe.c
|
|
@ -1449,6 +1449,19 @@ init_fringe_bitmap (int which, struct fringe_bitmap *fb, int once_p)
|
|||
#endif /* not USE_CAIRO */
|
||||
#endif /* HAVE_X_WINDOWS */
|
||||
|
||||
#ifdef HAVE_NTGUI
|
||||
unsigned short *bits = fb->bits;
|
||||
int j;
|
||||
for (j = 0; j < fb->height; j++)
|
||||
{
|
||||
unsigned short b = *bits;
|
||||
b <<= (16 - fb->width);
|
||||
#ifndef WORDS_BIGENDIAN
|
||||
b = ((b >> 8) | (b << 8));
|
||||
#endif
|
||||
*bits++ = b;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
if (!once_p)
|
||||
|
|
|
|||
Loading…
Reference in a new issue