/[emacs]/emacs/src/xterm.c
ViewVC logotype

Diff of /emacs/src/xterm.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.804.2.13 by miles, Fri Aug 27 07:00:34 2004 UTC revision 1.804.2.14 by miles, Tue Sep 21 09:34:11 2004 UTC
# Line 10611  x_term_init (display_name, xrm_option, r Line 10611  x_term_init (display_name, xrm_option, r
10611      int screen_number = XScreenNumberOfScreen (dpyinfo->screen);      int screen_number = XScreenNumberOfScreen (dpyinfo->screen);
10612      double pixels = DisplayHeight (dpyinfo->display, screen_number);      double pixels = DisplayHeight (dpyinfo->display, screen_number);
10613      double mm = DisplayHeightMM (dpyinfo->display, screen_number);      double mm = DisplayHeightMM (dpyinfo->display, screen_number);
10614      dpyinfo->resy = pixels * 25.4 / mm;      /* Mac OS X 10.3's Xserver sometimes reports 0.0mm.  */
10615        dpyinfo->resy = (mm < 1) ? 100 : pixels * 25.4 / mm;
10616      pixels = DisplayWidth (dpyinfo->display, screen_number);      pixels = DisplayWidth (dpyinfo->display, screen_number);
10617        /* Mac OS X 10.3's Xserver sometimes reports 0.0mm.  */
10618      mm = DisplayWidthMM (dpyinfo->display, screen_number);      mm = DisplayWidthMM (dpyinfo->display, screen_number);
10619      dpyinfo->resx = pixels * 25.4 / mm;      dpyinfo->resx = (mm < 1) ? 100 : pixels * 25.4 / mm;
10620    }    }
10621    
10622    dpyinfo->Xatom_wm_protocols    dpyinfo->Xatom_wm_protocols

Legend:
Removed from v.1.804.2.13  
changed lines
  Added in v.1.804.2.14

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26