diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-27 23:08:59 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-27 23:08:59 +0100 |
commit | 806353ec9eda162a3ff13cad1e5228c58cd67566 (patch) | |
tree | 442d3fcd52e36862de12d047cf6e3a5eca2672d0 /sys/man/3 | |
parent | 874e71c8dc489b820c9a6066d13c470a34d7f83f (diff) |
devvga: implement screen tilting, remove panning and overlays
Tilting allows using left/right rotated or invetrted display orientation.
This can be changed at runtime such as: echo tilt right > /dev/vgactl
This removes the old panning and vga overlays as they are only implemented
with some ancient vga controllers.
Diffstat (limited to 'sys/man/3')
-rw-r--r-- | sys/man/3/vga | 74 |
1 files changed, 13 insertions, 61 deletions
diff --git a/sys/man/3/vga b/sys/man/3/vga index e3164c08e..993f9767b 100644 --- a/sys/man/3/vga +++ b/sys/man/3/vga @@ -6,8 +6,6 @@ vga \- VGA controller device .B bind #v /dev .B /dev/vgactl -.B /dev/vgaovl -.B /dev/vgaovlctl .fi .SH DESCRIPTION The VGA device allows configuration of a graphics controller @@ -48,31 +46,25 @@ pixels wide by .I Y pixels high. This message is optional; -it is used to implement panning and to accommodate -displays that require the in-memory screen image -to have certain alignment properties. +it is used to accommodate displays that require the +in-memory screen image to have certain alignment properties. For example, a 1400x1050 screen with a 1408x1050 in-memory image will use .B "size 1408x1050 but .BR "actualsize 1400x1050" . .TP -.BI panning " mode" -Depending on whether -.I mode -is -.B on -or -.BR off , -enable or disable panning in a virtual screen. -If panning is on and the screen's -.B size -is larger than its -.BR actualsize , -the displayed portion of the screen will pan to follow the mouse. -Setting the panning mode after the first attach of the -.B #i -driver has no effect. +.BI tilt " value" +Set the tilt of the screen, +altering the screen's orientation. +The +.I value +can be one of: +.BR none , +.BR left , +.B inverted +and +.BR right . .TP .BI type " ctlr" Set the type of VGA controller being used. @@ -206,46 +198,6 @@ This must be sent after setting the Reading .B vgactl returns the current settings, one per line. -.PP -Some VGA cards support overlay graphics. -Writing strings to -.B vgaovlctl -configures such cards. -The following are valid overlay control commands: -.TP -.BI openctl -opens the overlay device. -.TP -.BI configure " w h format" -allocates resources inside the driver to support an overlay area -of width -.I w -and height -.I h -pixels. Currently, the only supported -.I format -is -.B YUYV -packed. -In -.B YUYV -two pixels are encoded by their separate Y values -and their combined U and V values. -The size of the two pixels is 32 bits. -.TP -.BI enable " x y w h" -enables drawing data on the display through the overlay mode. The data -is drawn at position -.IR x , y -and has a width and height of -.IR w , h -respectively. -.TP -.BI closectl -terminates overlay control. -.PP -Overlay data can be written to -.BR vgaovl . .SH EXAMPLES The following disables hardware acceleration. .IP |