Commit Graph

37 Commits

Author SHA1 Message Date
wiz 9fa0b17629 Give initiali[sz]e all the "i"s it deserves. 2001-09-18 18:15:49 +00:00
nathanw 54caa65cf6 Correct the ri_xorigin calculation for the RI_CENTER case again.
Original calculation (bits += (ri_stride - ri_emustride) / 2) was
incorrect because stride may be wider than visible width.

Fix in 1.33 (bits += (ri_width - ri_emustride) / 2) was incorrect
because units do not match; "bits" and "ri_emustride" are in bytes,
but "width" is in pels. Works by accident for 8bpp displays.

Change to bits += ((ri_width * bpp / 8) - ri_emustride) / 2
to correctly account for visible width and bpp.
2001-02-12 04:33:36 +00:00
marcus 51c778440d Now does character remapping depending on font encoding. 2001-02-02 06:01:01 +00:00
takemura 0906d8d1fe Rasops supports 4bit depth. 2001-01-21 13:50:58 +00:00
nisimura b3345434e4 Fix an error in xoffset calculation. Revealed in the case when
ri_width is less than ri_stride and screen is layouted RI_CENTERed.
2000-12-19 09:52:53 +00:00
ad 3553879fc2 Use my proper name. 2000-06-13 13:36:42 +00:00
sommerfeld 9769dedd5b Let this build on LP64 if DEBUG is defined. 2000-06-12 23:45:45 +00:00
pk eba24e4799 * Spell shift counts in decimal and masks in hex
* Optimize numerous array references
* Cleanup whitespace turds
2000-04-12 14:22:28 +00:00
nathanw bac9153774 Advance index into rasops_cmap for each color, not per triplet.
This makes highlighing and color possible on truecolor displays.
2000-04-05 20:33:28 +00:00
nathanw 2d78be17d1 Fix computation of ri_xorigin in RI_CENTER case; convery from bytes to
pixels, not from bytes to bytes^2/pixel.
2000-04-04 20:59:17 +00:00
nisimura ae493d8845 Resolve LP64 issues. 2000-03-14 04:23:14 +00:00
shin 66198937f8 replace WSFONT_L2R by WSDISPLAY_FONTORDER_L2R to compile again. 2000-01-06 05:27:19 +00:00
ad 624ebb55cb Dispatch another nit. 1999-12-16 13:27:24 +00:00
drochner f0b63a4aa2 -use the right namespace for screen capabilities
-make attribute decomposing a bit more friendly if the caller doesn't
 care about underlines
1999-12-04 13:57:35 +00:00
drochner 5c69a4c489 -initialize the colormap completely at compile time, to allow drivers
to use it early
-now we can declare it "const" (as "rasops_isgray[]", while we are here)
-don't use the fg/bg colors in ...alloc_attr() if the WSATTR_WSCOLORS
 flag was not given - use reasonable defaults instead
-add an opaque "ri_hw" member to "rasops_info", for driver use
1999-12-02 22:57:13 +00:00
enami 6b2ae05f21 Possible typo. 1999-11-06 01:01:20 +00:00
ad 341c38ac01 In rasops_do_cursor(), don't pull the mask from ri_devcmap[], just use ~0.
Needed to make cursor DTRT on NetBSD/hpcmips - from takemura.
1999-11-05 10:16:11 +00:00
ad c5542264f1 - New option (RASOPS_SMALL) for the tight-fisted.
- 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-10-23 23:14:13 +00:00
ad adff5c3f3c Use proper mask when RI_FORCEMONO is set and XORing cursor. 1999-10-04 22:52:13 +00:00
ad 54943e8584 - Collapse forward and reverse cases in rasops_copyrows() into one
- Pull in opt_rasops.h so we know if clipping is enabled
- Some KNF
1999-09-17 00:22:07 +00:00
ad da0cbab431 Clean up attribute allocation some more. 1999-09-17 00:09:34 +00:00
thorpej 43c0128089 Small consistency nit. 1999-08-26 22:44:29 +00:00
thorpej f2a165de01 Make monochrome attribte allocation a bit more obvious. 1999-08-26 21:48:11 +00:00
ad 9a61ce5bff When clearing the entire display, point to the start of the framebuffer,
not start of console output. Also, do not advance by ri_delta every row.
1999-08-25 08:45:25 +00:00
ad 7f2b1ba8f2 - Change the semantics of rasops_init slightly
- Re-name rasops_setfont to rasops_reconfig
- Add some new run-time 'features'
- Bring all run-time 'features' under control of rasops_info::ri_flg
- Some cosmetic changes
1999-08-24 11:07:31 +00:00
ad a41907cbf8 - Style nits
- Kill some of the dainbramage in variable-depth copycols()
1999-07-21 19:19:03 +00:00
ad 10b0c75443 - Don't even try to emulate WSATTR_HILIT on mono displays
- WSATTR_REVERSE is a capability of both mono/color
1999-06-15 22:34:45 +00:00
ad 05a0ca4737 Fix stupid alignment bug. The 'slop' stuff is due for replacement with masks
RSN per the README.
1999-06-15 21:34:05 +00:00
ad bb3a510fa2 Assign ownership & copyright to TNF. There is probably a procedure for this
that I am unaware of. Also some KNF.
1999-05-18 21:51:57 +00:00
ad 0d472fafcc Add diagnostic measures to check for missing font. 1999-05-15 12:56:46 +00:00
ad f4fedb6139 wsfont cookies <= 0 are invalid, not just those < 0. 1999-05-15 12:54:53 +00:00
ad 90d35111e1 In rasops_erasecols(), try word aligned case before halfword aligned. 1999-05-09 17:50:27 +00:00
ad 34480e41c4 Add cookie for wsfont to rasops_info. 1999-04-29 02:49:40 +00:00
ad f9510a4f4b Innumerable fixes and improvements. README contains list of remaining bugs
that need to be squashed.
1999-04-26 04:27:47 +00:00
ad d8a02e8017 Code cleanup. Add ri_bswap member to 'struct rasops_info' to indicate that
framebuffer endianness differs from CPU (for 15,16,32-bit displays).
1999-04-13 03:02:40 +00:00
ad de43e7cc8d Fixed licensing due to a foobar on my behalf. 1999-04-13 00:40:07 +00:00
ad 14d2ed835e Initial import of 'rasops', the new raster operations set for wscons/rcons. 1999-04-13 00:17:57 +00:00