git: kernel/syscons: Factor out font-scaling calculation to sc_font_scale().

Imre Vadasz ivadasz at crater.dragonflybsd.org
Thu Feb 18 11:44:50 PST 2016


commit ff1a859466a47da65f6a043b5ba1da988623aa1e
Author: Imre Vadász <imre at vdsz.com>
Date:   Wed Feb 17 23:01:23 2016 +0100

    kernel/syscons: Factor out font-scaling calculation to sc_font_scale().
    
    Avoid setting desired_cols after calculating the font scaling factor,
    otherwise multiple calls to sc_font_scale() could give surprising results.
    
    Also use sc_font_scale in init_scp, and limit the terminal size on the
    first vty to 80x25 to deal with the statically allocated sc_buffer for the
    kernel console.

Summary of changes:
 sys/dev/misc/syscons/scvidctl.c | 29 +---------------
 sys/dev/misc/syscons/syscons.c  | 77 ++++++++++++++++++++++++++++++++---------
 sys/dev/misc/syscons/syscons.h  |  1 +
 3 files changed, 62 insertions(+), 45 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ff1a859466a47da65f6a043b5ba1da988623aa1e


-- 
DragonFly BSD source repository



More information about the Commits mailing list