Commit Graph

71 Commits

Author SHA1 Message Date
uwe c6aa061dfa In rasops_copycols change bcopy to memmove. In that particular place
the src and dst are very likely to overlap, so using bcopy causes
garbage to be displayed
2003-05-03 18:32:42 +00:00
petrov 62ba316156 rasops32_putchar: don't paint character out of font limits. 2003-04-16 23:28:41 +00:00
provos 0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +00:00
petrov 3962bed888 compiler warning. 2002-09-05 08:02:29 +00:00
junyoung 98edf775dc Rename rasops_alloc_cattr and rasops_alloc_mattr to
rasops_allocattr_color and rasops_allocattr_mono, respectively.
2002-07-04 17:15:28 +00:00
junyoung 3d826105dc alloc_attr -> allocattr
Approved by Matthias Drochner.
2002-07-04 14:37:10 +00:00
thorpej 46b268dfef Avoid sequence point error. 2002-05-31 19:42:12 +00:00
ad b89e39b91a Reorganise the wsfont stuff slightly so that multiple display adapters
with different bit/byte order requirements can co-exist happily.
2002-03-13 15:05:13 +00:00
uwe 6e320d03b8 Undo previous that incorrectly byte-swaps stamps for little endian
machines when RI_BSWAP is *not* set.  Redo my original fix to directly
build stamps in desired endianness instead of calling bswap32().
2002-02-11 20:50:58 +00:00
uch 5e1dc96b6e | Module Name: syssrc
| Committed By:	uwe
 | Date:		Thu Jan 31 11:18:08 UTC 2002
 |
 | Modified Files:
 | 	syssrc/sys/dev/rasops: rasops8.c
 |
 | Log Message:
 | Honor RI_BSWAP.

Endian fix.
2002-02-08 14:55:23 +00:00
uwe 0778a707e9 Honor RI_BSWAP. 2002-01-31 11:18:07 +00:00
lukem ecb81c3f6d - convert usage of "defopt" to "defflag" where the relevant option does
not support a value (e.g., it's to be used as "options FOO" instead of
  "options FOO=xxx"). options that take a value were converted to
  defparam recently.
- minor whitespace & formatting cleanups
2001-11-28 10:21:10 +00:00
lukem 2565646230 don't need <sys/types.h> when including <sys/param.h> 2001-11-15 09:47:59 +00:00
lukem cb1dc621e6 add/cleanup RCSIDs 2001-11-13 07:00:23 +00:00
wiz 9fa0b17629 Give initiali[sz]e all the "i"s it deserves. 2001-09-18 18:15:49 +00:00
bjh21 976681bfed Adjust #ifdefs so RASOPS_SMALL doesn't give "defined but not used" warnings. 2001-08-10 19:12:35 +00:00
jdolecek 372e5956ef Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.
2001-04-11 07:42:31 +00:00
sato a965aa1435 rasops4.c depend on rasops_masks.c 2001-02-15 09:51:28 +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
bjh21 dd7e31f012 The mask tables have no excuse for being in the data segment. 2001-01-12 23:03:52 +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
thorpej 13c39a5cb6 Put the rasops attributes in conf/files so that everyone can run
config(8) without pulling in files.rasops.  There is prior art for
this, e.g. audio.
2000-04-20 18:23:37 +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
ad fc8ea8f0c5 Misplaced #endif. 2000-02-12 22:06:54 +00:00
ad 59748e7e55 Fix the unaligned accesses discovered by dbj. 2000-02-12 21:58:58 +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
ad 977e07ff58 Note that per-depth initialization functions shouldn't be called by mere
mortals.
1999-12-14 22:25:13 +00:00
ad 88ad70226e The ri_hw member was added to 'struct rasops_info'. This does the same thing
as ri_priv; since ri_priv is not used anywhere in the kernel, nuke it.
1999-12-14 22:20:28 +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 419ec27c34 Wrap a line properly. 1999-10-24 15:14:57 +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 033a99c5ae Note some ideas from Toru Nishimura. 1999-10-07 09:04:10 +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
ad 78d4510ba0 Pass color value through ri->ri_devcmap before writing. 1999-08-31 10:11:52 +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