ref: 5d7bbec094fa8f4e4bcc8b36339be6fa9b8cefc7
parent: be81150bb4bf4bd24cda4481353840bc4885c1c8
author: cinap_lenrek <cinap_lenrek@localhost>
date: Mon May 16 20:44:34 EDT 2011
reset screenimage in devvga "drawinit" command to account for actualsize
--- a/sys/src/9/pc/devvga.c
+++ b/sys/src/9/pc/devvga.c
@@ -316,9 +316,6 @@
deletescreenimage();
if(screensize(x, y, z, chan))
error(Egreg);
- vgascreenwin(scr);
- resetscreenimage();
- cursoron(1);
return;
case CMactualsize:
@@ -355,6 +352,9 @@
error("drawinit: no gscreen");
if(scr->dev && scr->dev->drawinit)
scr->dev->drawinit(scr);
+ vgascreenwin(scr);
+ resetscreenimage();
+ cursoron(1);
return;
case CMlinear: