Mercurial > hg > xemacs-beta
comparison src/device-tty.c @ 5475:248176c74e6b
Merge with trunk.
author | Mats Lidell <matsl@xemacs.org> |
---|---|
date | Sat, 23 Apr 2011 23:47:13 +0200 |
parents | 308d34e9f07d 4486ba63476b |
children | 56144c8593a8 |
comparison
equal
deleted
inserted
replaced
5474:4dee0387b9de | 5475:248176c74e6b |
---|---|
192 switch (m) | 192 switch (m) |
193 { | 193 { |
194 case DM_size_device: | 194 case DM_size_device: |
195 return Fcons (make_int (CONSOLE_TTY_DATA (con)->width), | 195 return Fcons (make_int (CONSOLE_TTY_DATA (con)->width), |
196 make_int (CONSOLE_TTY_DATA (con)->height)); | 196 make_int (CONSOLE_TTY_DATA (con)->height)); |
197 case DM_num_bit_planes: | |
198 { | |
199 EMACS_INT l2 = (EMACS_INT) (log (CONSOLE_TTY_DATA (con)->colors) | |
200 / log (2)); | |
201 return make_int (l2); | |
202 } | |
203 case DM_num_color_cells: | |
204 return make_int (CONSOLE_TTY_DATA (con)->colors); | |
197 default: /* No such device metric property for TTY devices */ | 205 default: /* No such device metric property for TTY devices */ |
198 return Qunbound; | 206 return Qunbound; |
199 } | 207 } |
200 } | 208 } |
201 | 209 |