summaryrefslogtreecommitdiff
path: root/sys/dev/rasops/rasops15.c
AgeCommit message (Collapse)Author
2019-08-14When using stamp, drop attributions other than back and foregroundrin
colors so that stamp is not updated unnecessarily.
2019-08-10Misc style clean up's.rin
- 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.
2019-08-07Merge rasops_putchar_aa.h into rasops_putchar.h.rin
Support scaling underline dimensions by font height.
2019-08-07Oops, revert an unintentional change for now.rin
2019-08-07Stop allocating ri_buf and ri_stamp dynamically. As commented inrin
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.
2019-08-02Cosmetic changes. No functional changes.rin
2019-07-31Switch to per-device stamp, and retire stamp_mutex.rin
XXX Bump kernel version after other changes for struct rasops_info.
2019-07-31Misc clean-up's:rin
- protect private stuff in rasops.h by _RASOPS_PRIVATE - staticify rasops_copycols() and rasops_isgray[] - G/C unused extern int cold
2019-07-29Factor out putchar_aa functions into rasops_putchar_aa.h, which includesrin
the following fixes: - stop using memset to framebuffer for depth 8 - correctly support non-standard positions/lengths of RGB bits in pixel
2019-07-28Cast attr to uint32_t before right shift to avoid undefined behavior.rin
Also, misc style/cosmetic changes for clarity.
2019-07-28Fix underline for anti-aliased fonts on 15/16 depth screen.rin
2019-07-25Factor out putchar and width-optimized putchar functions intorin
rasops_putchar.h and rasops_putchar_width.h, respectively. XXX Possibly, we can do the same for putchar_aa functions. But it is currently missing for 24-bpp.
2019-07-25Provide and use FONT_GLYPH macro, tiny optimization version of WSFONT_GLYPH.rin
2019-07-25Misc cleen up:rin
- Make 32bit mask unsigned - DPRINTF --> __nothing ifndef DEBUG_RASOPS - "#ifdef DIAGNOSTIC if (x) panic(); #endif" --> KASSERT(!x); - KNF No functional changes intended.
2019-07-24Use unsigned integers for binary data storage.rin
No functional changes intended.
2019-07-24Style:rin
- u_char --> uint8_t - u_int*_t --> uint*_t No functional changes.
2019-07-21Fix byte order of stamp for big endian so that width-optimizedrin
putchar functions work correctly.
2018-12-04rasops reused wscons attribute bits for internal control.mlelstv
- make upper 4 attribute bits available for such use - use wscons flag names instead of literal constants.
2017-01-25Add rasops15_putchar_aa() for greyscale fonts.jakllsch
Based on rasops8_putchar_aa() and rasops32_putchar_aa().
2012-04-17fix what has to be a thinko - I doubt there's much hardware out there thatmacallan
uses BGR in 15/16 bit colour
2010-05-04autogenerate box drawing characters for fonts that don't have them, put themmacallan
into an alternate font pointed at by the recently added mappings in wsfont, adapt all putchar() methods except the rotated ones to use them XXX no attempt has been made to make this work with rotation
2009-03-14ANSIfy another 1261 function definitions.dsl
The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
2009-03-14Change about 4500 of the K&R function definitions to ANSI ones.dsl
There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2007-03-04Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.christos
2006-02-18Add shadow framebuffer support.jmcneill
2005-12-11merge ktrace-lwp.christos
2005-02-04de-__Pperry
2001-11-15don't need <sys/types.h> when including <sys/param.h>lukem
2001-11-13add/cleanup RCSIDslukem
2001-09-18Give initiali[sz]e all the "i"s it deserves.wiz
2000-06-13Use my proper name.ad
2000-04-12* Spell shift counts in decimal and masks in hexpk
* Optimize numerous array references * Cleanup whitespace turds
2000-02-12Fix the unaligned accesses discovered by dbj.ad
1999-10-23- New option (RASOPS_SMALL) for the tight-fisted.ad
- Don't use int32_t/u_int32_t unless we must. - Remove C++ single line comment delimeters that crept in. - Remove defs pertaining to byte granularity 'ragged-edge' bitmasks. - Move all declarations of per-depth initialization functions to rasops.h. - Other minor cleanup.
1999-05-18Assign ownership & copyright to TNF. There is probably a procedure for thisad
that I am unaware of. Also some KNF.
1999-04-26Innumerable fixes and improvements. README contains list of remaining bugsad
that need to be squashed.
1999-04-13Fixed licensing due to a foobar on my behalf.ad
1999-04-13Initial import of 'rasops', the new raster operations set for wscons/rcons.ad