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, |