From: Eli Zaretskii <eliz@gnu.org>
To: emacs-devel@gnu.org
Subject: Strange code in xterm.c
Date: Mon, 20 Dec 2010 05:45:19 -0500 [thread overview]
Message-ID: <E1PUdF1-000443-8f@fencepost.gnu.org> (raw)
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?
next reply other threads:[~2010-12-20 10:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-20 10:45 Eli Zaretskii [this message]
2010-12-20 19:58 ` Strange code in xterm.c Jan Djärv
2010-12-21 3:49 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1PUdF1-000443-8f@fencepost.gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).