]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix redisplay of glyphless characters
authorEli Zaretskii <eliz@gnu.org>
Sat, 13 Oct 2018 16:47:01 +0000 (19:47 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 13 Oct 2018 16:47:01 +0000 (19:47 +0300)
* src/conf_post.h (bool_bf): Use 'unsigned int' in the MinGW
builds.  Suggested by Tom Tromey <tom@tromey.com>.  (Bug#33017)
* src/dispnew.c (scrolling_window): Update commentary
regarding xwidget builds.

src/conf_post.h
src/dispnew.c

index 69f686d72df3d28b5b7fe2216d84191cfffde172..a09e529fc90ccf7fcf026fc96ce25d649d08960a 100644 (file)
@@ -48,9 +48,11 @@ along with GNU Emacs.  If not, see <https://www.gnu.org/licenses/>.  */
 #endif
 
 /* The type of bool bitfields.  Needed to compile Objective-C with
-   standard GCC.  It was also needed to port to pre-C99 compilers,
-   although we don't care about that any more.  */
-#if NS_IMPL_GNUSTEP
+   standard GCC, and to make sure adjacent bool_bf fields are packed
+   into the same 1-, 2-, or 4-byte allocation unit in the MinGW
+   builds.  It was also needed to port to pre-C99 compilers, although
+   we don't care about that any more.  */
+#if NS_IMPL_GNUSTEP || defined(__MINGW32__)
 typedef unsigned int bool_bf;
 #else
 typedef bool bool_bf;
index a81d6f64d1e51691be2f1539a60fdf77250d2dd1..d3a31967ae0fa25359e35bc88500174485b12f5b 100644 (file)
@@ -4125,7 +4125,12 @@ scrolling_window (struct window *w, bool header_line_p)
     }
 
 #ifdef HAVE_XWIDGETS
-  /* Currently this seems needed to detect xwidget movement reliably. */
+  /* Currently this seems needed to detect xwidget movement reliably.
+     This is most probably because an xwidget glyph is represented in
+     struct glyph's 'union u' by a pointer to a struct, which takes 8
+     bytes in 64-bit builds, and thus the comparison of u.val values
+     done by GLYPH_EQUAL_P doesn't work reliably, since it assumes the
+     size of the union is 4 bytes.  FIXME.  */
     return 0;
 #endif