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/src/9/pc/vgact65545.c | |
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/src/9/pc/vgact65545.c')
-rw-r--r-- | sys/src/9/pc/vgact65545.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/9/pc/vgact65545.c b/sys/src/9/pc/vgact65545.c index 2696f365f..cc10a4222 100644 --- a/sys/src/9/pc/vgact65545.c +++ b/sys/src/9/pc/vgact65545.c @@ -34,7 +34,7 @@ ct65545enable(VGAscr* scr) * Find a place for the cursor data in display memory. * Must be on a 1024-byte boundary. */ - storage = ROUND(scr->gscreen->width*sizeof(ulong)*scr->gscreen->r.max.y, 1024); + storage = ROUND(scr->pitch*scr->height, 1024); outl(0xB3D0, storage); scr->storage = storage; |