(struct scroll_bar): New member fringe_extended_p.
authorYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 27 Jul 2007 08:40:38 +0000 (08:40 +0000)
committerYAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
Fri, 27 Jul 2007 08:40:38 +0000 (08:40 +0000)
(w32_fill_area): Enclose multiple statements with do ... while (0).

src/w32term.h

index 3bf7d5885012ae6106f04c33e6c7e95c943d180b..d809992b8ff3f7d57a6f264276fa149275b0fcea 100644 (file)
@@ -487,6 +487,10 @@ struct scroll_bar {
      place where the user grabbed it.  If the handle isn't currently
      being dragged, this is Qnil.  */
   Lisp_Object dragging;
+
+  /* t if the background of the fringe that is adjacent to a scroll
+     bar is extended to the gap between the fringe and the bar.  */
+  Lisp_Object fringe_extended_p;
 };
 
 /* The number of elements a vector holding a struct scroll_bar needs.  */
@@ -576,14 +580,14 @@ extern void w32_fill_rect ();
 extern void w32_clear_window ();
 
 #define w32_fill_area(f,hdc,pix,x,y,nx,ny) \
-{ \
+do { \
     RECT rect; \
     rect.left = x; \
     rect.top = y; \
     rect.right = x + nx; \
     rect.bottom = y + ny; \
     w32_fill_rect (f,hdc,pix,&rect); \
-}
+} while (0)
 
 #define w32_clear_rect(f,hdc,lprect) \
 w32_fill_rect (f,hdc,f->output_data.x->background_pixel,lprect)