; * src/window.c (window_scroll): Improve commentary.
authorEli Zaretskii <eliz@gnu.org>
Mon, 19 Nov 2018 18:35:28 +0000 (20:35 +0200)
committerEli Zaretskii <eliz@gnu.org>
Mon, 19 Nov 2018 18:35:28 +0000 (20:35 +0200)
src/window.c

index 9cde2c5ecc45a26979c5991a58202eb3a3e342cf..5d99098cba158379847adc21f55a92efc83dfc53 100644 (file)
@@ -4977,8 +4977,8 @@ window_scroll (Lisp_Object window, EMACS_INT n, bool whole, bool noerror)
   if (whole && Vfast_but_imprecise_scrolling)
     specbind (Qfontification_functions, Qnil);
 
-  /* If we must, use the pixel-based version which is much slower than
-     the line-based one but can handle varying line heights.  */
+  /* On GUI frames, use the pixel-based version which is much slower
+     than the line-based one but can handle varying line heights.  */
   if (FRAME_WINDOW_P (XFRAME (XWINDOW (window)->frame)))
     window_scroll_pixel_based (window, n, whole, noerror);
   else