aboutsummaryrefslogtreecommitdiff
path: root/sys/compat/linuxkpi/common/include/linux
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>2017-07-08 17:30:33 +0000
committerBruce Evans <bde@FreeBSD.org>2017-07-08 17:30:33 +0000
commit28bbe30cce0aaa24ff0e6e0370e138020e29fe2e (patch)
treed6c00855b2c6037705c5b77eb0d007df55f4285f /sys/compat/linuxkpi/common/include/linux
parent761e6663037244d8f4cc2cbfce07cb3d32f64ed4 (diff)
downloadsrc-28bbe30cce0aaa24ff0e6e0370e138020e29fe2e.tar.gz
src-28bbe30cce0aaa24ff0e6e0370e138020e29fe2e.zip
Add many bitmaps (now there are 13) for mouse cursors and logic to try
to choose the best one. The old 9x13 cursor was was sort of correct for CGA 640x200 text mode, but distorted for all other modes. This mode is still available on all systems with VGA, but stopped being useful in ~1985. It has very unsquare pixels with an aspect ratio of 240:100 on 4:3 monitors. On 16:9 monitors, the unsquareness in this mode is reduced to only 180:100 iff the monitor stretches the pixels to the full screen. Newer modes and systems have smaller distortions, but with many more variations. Square pixels first became common with VGA 640x480 mode on 4:3 monitors. However, standard VGA text mode also has 9-bit wide characters and only 25 lines, so it has 720x400 pixels. This has unsquare pixels with an aspect ratio of 135:100 on 4:3 monitors. On 16:9 monitors, it gives almost-square pixels with an aspect ration of 101:100 iff the monitor stretches, but in modes that were square on 4:3 monitors square similar monitor stretching breaks the squareness. Guess the physical aspect ratio using heuristics. The old version of X that I use is further from doing this using info from PnP monitors that is unavailable in syscons (X doesn't understand if the monitor is doing stretching and doesn't even understand how its its own mode changes affect the pixel size). Monitors with aspect ratio control should be configured to _not_ stretch 4:3 modes to 16:9. Otherwise, use the machdep.vga_aspect_scale sysctl to compensate. Only 1 of my 4 monitors/laptops requires this. It always stretches to 16:9. The mouse data has new aspect ratio fields for selecting the best cursor and a new name field for display in debugging messages. Selecting the mouse cursor is now a slow operation so it is not done for every drawing of the cursor. To avoid a new initialization method, it is done whenever the text cursor is set or changed. Also remove dead code in settings of text cursors. Use larger mouse cursors (sometimes the full 10x16 one) for 8x8 fonts in cases where this works better (mostly in graphics mode).
Notes
Notes: svn path=/head/; revision=320808
Diffstat (limited to 'sys/compat/linuxkpi/common/include/linux')
0 files changed, 0 insertions, 0 deletions