emacs-23.1.90-fixed-resolution.patch 540 B

123456789101112
  1. diff -up emacs-23.1.90/src/xterm.c\~ emacs-23.1.90/src/xterm.c
  2. --- emacs-23.1.90/src/xterm.c~ 2009-12-10 08:52:48.000000000 +0900
  3. +++ emacs-23.1.90/src/xterm.c 2009-12-10 08:57:22.000000000 +0900
  4. @@ -10340,6 +10340,8 @@ x_term_init (display_name, xrm_option, r
  5. mm = DisplayWidthMM (dpyinfo->display, screen_number);
  6. /* Mac OS X 10.3's Xserver sometimes reports 0.0mm. */
  7. dpyinfo->resx = (mm < 1) ? 100 : pixels * 25.4 / mm;
  8. + dpyinfo->resy = 96;
  9. + dpyinfo->resx = 96;
  10. }
  11. dpyinfo->Xatom_wm_protocols