]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix compilation error with non-toolkit scrollbar.
authorKaroly Lorentey <karoly@lorentey.hu>
Sun, 22 Apr 2007 13:47:56 +0000 (13:47 +0000)
committerKaroly Lorentey <karoly@lorentey.hu>
Sun, 22 Apr 2007 13:47:56 +0000 (13:47 +0000)
* src/xterm.c (x_scroll_bar_expose): Fix reference to foreground pixel.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-604

src/xterm.c

index 6a574533a2cd64344fb85ea8c58204bf877f1fdd..8b0078d6af69ea6a05b46bd0a744c1b420d3efdf 100644 (file)
@@ -5308,7 +5308,7 @@ x_scroll_bar_expose (bar, event)
    /* Restore the foreground color of the GC if we changed it above.  */
    if (f->output_data.x->scroll_bar_foreground_pixel != -1)
      XSetForeground (FRAME_X_DISPLAY (f), gc,
-                   f->output_data.x->foreground_pixel);
+                    FRAME_FOREGROUND_PIXEL (f));
 
    UNBLOCK_INPUT;