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

Diff of /emacs/src/macfns.c

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

revision 1.36 by tamm, Sun Jun 6 20:53:20 2004 UTC revision 1.37 by jhd, Thu Jun 17 13:04:25 2004 UTC
# Line 2939  If omitted or nil, that stands for the s Line 2939  If omitted or nil, that stands for the s
2939  {  {
2940    struct mac_display_info *dpyinfo = check_x_display_info (display);    struct mac_display_info *dpyinfo = check_x_display_info (display);
2941    
2942    /* MAC_TODO: check whether this is right */    /* We force 24+ bit depths to 24-bit to prevent an overflow.  */
2943    return make_number (dpyinfo->n_planes >= 8 ? 256 : 1 << dpyinfo->n_planes - 1);    return make_number (1 << min (dpyinfo->n_planes, 24));
2944  }  }
2945    
2946  DEFUN ("x-server-max-request-size", Fx_server_max_request_size,  DEFUN ("x-server-max-request-size", Fx_server_max_request_size,

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

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