Commit Graph

90 Commits

Author SHA1 Message Date
mjf 05619021ad Implement bounds checking in some places in display driver code to avoid
the possibility of a local user panic.
2007-07-28 20:28:56 +00:00
christos fffc9c66c9 fix fallout from caddr_t changes. 2007-03-04 07:54:07 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
ober 5c470843ae Updates to allow Zaurus screen to rotate 90 degrees to a usable state with the keyboard. Patch from peter@ copied from OpenBSD. Feedback and OK from matt@ 2007-02-02 02:10:24 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos 4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
mrg f599351ef6 quieten GCC uninitialise variable warnings. 2006-05-18 18:45:48 +00:00
jmcneill 6984d2ca99 Fixup a performance problem in rasops_copyrows that I introduced during
the shadowfb merge.
2006-02-27 12:19:29 +00:00
jmcneill 4f186b3e0d Add shadow framebuffer support. 2006-02-18 13:57:33 +00:00
dsl 6f0f9f8763 Make almost everything #include <sys/bswap.h> instead of <machine/bswap.h>
The bswap.h and endian.h files are all rather incestuous, but I want to
get the constant folding stuff into one place - sys/bswap.h
2006-01-29 21:42:40 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
uwe 46f38c7fc9 We don't need <sys/bswap.h> here. 2005-09-03 22:55:55 +00:00
christos 78abf18aa2 avoid shadow variable "stamp" 2005-05-30 22:18:19 +00:00
macallan 3d2d786653 fixed tab width and formatting 2005-05-01 23:57:03 +00:00
macallan 80ef75e061 made rasops_allocattr_color() respect WS_DEFAULT_FG and WS_DEFAULT_BG instead of using white on black 2005-05-01 23:19:01 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
perry 18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
petrov 2f82eaf699 Check character if it in font limits before drawing it in rasops8_putchar
functions.
2004-03-05 08:33:53 +00:00
uwe aa4c79f23b For the rasops-drawn cursor the fg/bg indices are bit inverted, so
provide complimentary colors in the upper 16 entries.
2003-11-08 22:49:28 +00:00
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