git: kernel/syscons: Add simple font scaling when using KMS drivers.

Sascha Wildner swildner at crater.dragonflybsd.org
Wed Jun 10 14:05:03 PDT 2015


commit 219917cac5f18dc7b66356a5abae37ed04246fde
Author: Sascha Wildner <saw at online.de>
Date:   Wed Jun 10 23:04:40 2015 +0200

    kernel/syscons: Add simple font scaling when using KMS drivers.
    
    This commit lets the user choose the number of columns for KMS syscons
    with a new tunable, kern.kms_columns. If it is not set, the default is
    to scale as close as possible to 80x25 using natural numbers as scaling
    factors (e.g., on 1680x1050 the default would be a 105x32 char console
    using a 16x32 font).
    
    The commit also separates (scaled) character drawing into a new
    function, blit_blk(), and does some cleanups.
    
    Submitted-by: dillon

Summary of changes:
 share/man/man4/i915kms.4         |   8 +-
 share/man/man4/radeonkms.4       |   8 +-
 share/man/man4/syscons.4         |  54 ++++++++----
 sys/dev/misc/syscons/sckmsrndr.c | 186 +++++++++++++++++++++++++++++----------
 sys/dev/misc/syscons/scmouse.c   |  48 +++++-----
 sys/dev/misc/syscons/scterm-sc.c |  13 ++-
 sys/dev/misc/syscons/scvgarndr.c | 153 +++++++++++++++++---------------
 sys/dev/misc/syscons/scvidctl.c  |  55 ++++++++++--
 sys/dev/misc/syscons/syscons.c   |  63 +++++++------
 sys/dev/misc/syscons/syscons.h   |  12 ++-
 10 files changed, 402 insertions(+), 198 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/219917cac5f18dc7b66356a5abae37ed04246fde


-- 
DragonFly BSD source repository



More information about the Commits mailing list