all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Strange code in xterm.c
@ 2010-12-20 10:45 Eli Zaretskii
  2010-12-20 19:58 ` Jan Djärv
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2010-12-20 10:45 UTC (permalink / raw)
  To: emacs-devel

This a large part of the body of x_check_fullscreen:

      int width = FRAME_COLS (f), height = FRAME_LINES (f);
      struct x_display_info *dpyinfo = FRAME_X_DISPLAY_INFO (f);

      switch (f->want_fullscreen)
        {
          /* No difference between these two when there is no WM */
        case FULLSCREEN_BOTH:
        case FULLSCREEN_MAXIMIZED:
          width = x_display_pixel_width (dpyinfo);
          height = x_display_pixel_height (dpyinfo);
          break;
        case FULLSCREEN_WIDTH:
          width = x_display_pixel_width (dpyinfo);
          break;
        case FULLSCREEN_HEIGHT:
          height = x_display_pixel_height (dpyinfo);
        }

      if (FRAME_COLS (f) != width || FRAME_LINES (f) != height)
        {
          change_frame_size (f, height, width, 0, 1, 0);
          SET_FRAME_GARBAGED (f);
          cancel_mouse_face (f);
        }

Am I missing something, or does it mix up display dimensions in pixels
and in character units?



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-12-21  3:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-20 10:45 Strange code in xterm.c Eli Zaretskii
2010-12-20 19:58 ` Jan Djärv
2010-12-21  3:49   ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.