emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/frame.c,v


From: Chong Yidong
Subject: [Emacs-diffs] Changes to emacs/src/frame.c,v
Date: Mon, 12 Feb 2007 18:13:00 +0000

CVSROOT:        /sources/emacs
Module name:    emacs
Changes by:     Chong Yidong <cyd>      07/02/12 18:13:00

Index: frame.c
===================================================================
RCS file: /sources/emacs/emacs/src/frame.c,v
retrieving revision 1.337
retrieving revision 1.338
diff -u -b -r1.337 -r1.338
--- frame.c     6 Feb 2007 22:43:31 -0000       1.337
+++ frame.c     12 Feb 2007 18:13:00 -0000      1.338
@@ -3058,8 +3058,11 @@
   if (NILP (new_value))
     f->gamma = 0;
   else if (NUMBERP (new_value) && XFLOATINT (new_value) > 0)
+    {
+      Fclear_face_cache (Qnil);
     /* The value 0.4545 is the normal viewing gamma.  */
     f->gamma = 1.0 / (0.4545 * XFLOATINT (new_value));
+    }
   else
     signal_error ("Invalid screen-gamma", new_value);
 




reply via email to

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