reset screenimage in devvga "drawinit" command to account for actualsize

cinap_lenrek 2011-05-17 00:44:34 +00:00
parent be81150bb4
commit 5d7bbec094
1 changed files with 3 additions and 3 deletions

View File

@ -316,9 +316,6 @@ vgactl(Cmdbuf *cb)
deletescreenimage(); deletescreenimage();
if(screensize(x, y, z, chan)) if(screensize(x, y, z, chan))
error(Egreg); error(Egreg);
vgascreenwin(scr);
resetscreenimage();
cursoron(1);
return; return;
case CMactualsize: case CMactualsize:
@ -355,6 +352,9 @@ vgactl(Cmdbuf *cb)
error("drawinit: no gscreen"); error("drawinit: no gscreen");
if(scr->dev && scr->dev->drawinit) if(scr->dev && scr->dev->drawinit)
scr->dev->drawinit(scr); scr->dev->drawinit(scr);
vgascreenwin(scr);
resetscreenimage();
cursoron(1);
return; return;
case CMlinear: case CMlinear: