| Age | Commit message (Collapse) | Author |
|
rasops_make_box_chars_*() functions; Stop using ri_optfont instead.
XXX
Add rasops_make_box_chars_24().
|
|
No functional changes intended.
|
|
#ifdef switch per kernel config options in definition of device driver
structure in header files could be problematic.
See my post in port-zaurus@ for details:
https://mail-index.netbsd.org/port-zaurus/2019/10/31/msg000079.html
Should be pulled up to netbsd-8 and netbsd-9.
|
|
colors so that stamp is not updated unnecessarily.
|
|
- Introduce and use proper macros.
- Use not ambiguous variable names.
- Unify similar functions as possible as I can.
- G/C unused headers.
- Use #include <dev/rasops/foo.h> instead of "foo.h"
No particular functional changes intended.
|
|
No functional changes since this is not in use (4-bpp is monochrome).
|
|
Also, make sure that in putchar functions for completeness.
|
|
|
|
kernel messages are printed nicely on white background.
|
|
Pointed out by martin.
|
|
- Support anti-aliasing for 2bpp, which works perfectly!
- Support scaling underline dimensions with font height.
|
|
Support scaling underline dimensions by font height.
|
|
Currently,
- offset of underline is fixed to 1-row from bottom of characters, and
- height of underline is fixed to 1.
Both are good for standard 8x16 fonts. However, it is too thin for
larger fonts, especially when used on display of high resolution.
Also, 1-row offset of underline is ugly for small fonts, e.g.,
spleen5x8.
Therefore, adjust offset and height as,
- no changes for standard 16-height fonts.
- scaling by font height for larger fonts.
- set offset to zero for fonts of height smaller than 16.
|
|
- remove ri_buf and friends.
- remove ri_stamp and frieds.
- introduce ri_ul, which will be used for scaling underline with font.
Also add hack for ri_ul; adjust its size to obsoleted member, ri_delta,
which was only used rasops routines internally. Now, size and offsets of
all members of struct rasops_info become same with netbsd-9, -8, and -7,
again. So we can safelly pull up fixes to any release branches!
|
|
|
|
|
|
rasops.h, it is not safe to use kmem_alloc(9) in rasops_init();
rasops routines can be used for early putchar, which means that
UVM is not fully initialized.
Should fix a problem reported by macallan:
http://mail-index.netbsd.org/tech-kern/2019/08/02/msg025327.html
Instead of using ri_buf, inline function rasops_memcpy32() is
introduced to fill 32bit data efficiently.
Instead of using ri_stamp (per device stamp), stamp_ri is
introduced to distinguish for which device stamp is calculated.
|
|
No functional changes.
|
|
- Use static masks similar to that used in rasops_bitops.h,
rather than generating them on the fly.
- Use pointer for proper type to avoid unnecessary casts.
|
|
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/rasops/rasops.c#rev1.90
When src < dst, we have to copy backward.
|
|
IMO, it is impossible to support ANSI colors on 2-bpp display; fore-
and background can be same value even if they are different colors
logically.
|
|
|
|
No functional changes.
|
|
|
|
|
|
- When centering screen, locate effective base address of framebuffer to
both word and 24-bit color boundary.
- Consistently convert ri_devcmap to ``big endian'' if not RI_BSWAP.
Also, fix possible bug for 15/16-bpp with RI_BSWAP (not tested).
|
|
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/rasops/rasops24.c#rev1.42
|
|
|
|
|
|
Note that 1bpp continues to use its local version in rasops1.c,
which is much faster and simpler.
|
|
which was introduced in 1.18:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/rasops/rasops_bitops.h#rev1.18
|
|
including word boundary.
|
|
|
|
|
|
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/rasops/rasops.c#rev1.105
|
|
On the other hand, memmove is safe for rasops_copyrows().
|
|
Also, some cosmetic clean-up's.
|
|
|
|
|
|
XXX
Bump kernel version for rasops_info later.
|
|
|
|
XXX
Bump kernel version after other changes for struct rasops_info.
|
|
XXX
Bump kernel version after other changes for struct rasops_info.
|
|
- protect private stuff in rasops.h by _RASOPS_PRIVATE
- staticify rasops_copycols() and rasops_isgray[]
- G/C unused extern int cold
|
|
Use block copy from shadow fb to real fb, instead of repeating
the same operations to two fb's.
|
|
|
|
Otherwise, we can use memcpy safely instead of memmove.
|
|
|
|
|
|
http://mail-index.netbsd.org/source-changes-d/2019/07/29/msg011516.html
There are apparent bugs for shadow framebuffer. Sorry for the breakage.
|