opnsense-src/sys/dev/vt
Marcel Moolenaar 296a51148d Improve support for Macs that have a stride not equal to the
horizonal resolution (width). In those cases fb_bpp ended up
completely wrong -- as in 6 bytes per pixel or something like
that. Since we already have a way to calculate fb_depth given
the masks and fb_bpp is effectively the same as fb_depth, all
we need to do is make sure fb_bpp is rounded to the next
multiple of the number of bits in a byte -- we assume we can
divide by the number of bits in a byte throughout vt(4).
While here:
-   simplify how we calculate fb_depth.
-   use fb_bpp instead of fb_depth to calculate fb_stride;
    we know we can divide fb_bpp.
-   don't limit fb_width and fb_height by VT_FB_DEFAULT_WIDTH
    and VT_FB_DEFAULT_HEIGHT (resp.). Those constants have
    not relation to the size of the frame buffer.

This at least fixes "lower-resolution" Macs. We're talking
1280x1024 or so. There still is a problem with 27" Macs,
which typically have a horizontal resolution over 2K.

PR:		193745 (partial)
Ok'd by:	emaste@
2015-08-15 16:13:28 +00:00
..
colors - Use __FBSDID(). 2015-07-27 14:34:32 +00:00
font Improve vt(4) default mouse pointer image. Previous one looked rather ugly, 2015-02-13 13:55:38 +00:00
hw Improve support for Macs that have a stride not equal to the 2015-08-15 16:13:28 +00:00
logo vt: Draw logos per CPU core 2015-07-21 20:33:36 +00:00
vt.h vt: Draw logos per CPU core 2015-07-21 20:33:36 +00:00
vt_buf.c vt(4): Adjust the cursor position after changing the window size 2014-11-01 17:05:15 +00:00
vt_consolectl.c Remove stray whitespaces. 2014-09-12 14:07:20 +00:00
vt_core.c Improve the VT initialization message: have it say what the 2015-08-15 15:44:09 +00:00
vt_cpulogos.c vt: Draw logos per CPU core 2015-07-21 20:33:36 +00:00
vt_font.c Increase vt font limits to allow use of GNU Unifont 2015-04-14 19:18:34 +00:00
vt_sysmouse.c Huge cleanup of random(4) code. 2015-06-30 17:00:45 +00:00