emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master e420e9f: Fix fringe bitmap initialization on MS-Win


From: YAMAMOTO Mitsuharu
Subject: [Emacs-diffs] master e420e9f: Fix fringe bitmap initialization on MS-Windows
Date: Sat, 18 Feb 2017 23:43:55 -0500 (EST)

branch: master
commit e420e9f032dc3d73f89dee569c54fcf98618a50c
Author: YAMAMOTO Mitsuharu <address@hidden>
Commit: YAMAMOTO Mitsuharu <address@hidden>

    Fix fringe bitmap initialization on MS-Windows
    
    * src/fringe.c (init_fringe_bitmap) [HAVE_NTGUI]: Fix initialization
    of fb->bits.  (Bug#25673)
---
 src/fringe.c | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/src/fringe.c b/src/fringe.c
index c41a5d3..dbcd52b 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)
 #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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]