summaryrefslogtreecommitdiff
path: root/sys/src/9/pc/vga.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2017-12-03 18:54:25 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2017-12-03 18:54:25 +0100
commit65566dda8ebbfddc3732c9c8caae972dd1fc9561 (patch)
tree83594e59cb0ce39b179b12cd82a14262307a89d2 /sys/src/9/pc/vga.c
parenta08727d9da8334c3c96de41dafc5820aac9013da (diff)
devvga: properly handle physical screen size and panning
- remove arbitrary limits on screen size, just check with badrect() - post resize when physgscreenr is changed (actualsize ctl command) - preserve physgscreenr across softscreen flag toggle - honor panning flag on resize - fix nil dereference in panning ctl command when scr->gscreen == nil - use clipr when drawing vga plan 9 console (vgascreenwin())
Diffstat (limited to 'sys/src/9/pc/vga.c')
-rw-r--r--sys/src/9/pc/vga.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/src/9/pc/vga.c b/sys/src/9/pc/vga.c
index 430ce89fc..e88937730 100644
--- a/sys/src/9/pc/vga.c
+++ b/sys/src/9/pc/vga.c
@@ -193,6 +193,7 @@ vgascreenwin(VGAscr* scr)
freememimage(i);
}
+ r = scr->gscreen->clipr;
window = insetrect(r, 20);
memimagedraw(scr->gscreen, window, conscol, ZP, memopaque, ZP, S);
window = insetrect(window, 4);