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

This commit is contained in:
cinap_lenrek 2011-05-17 00:44:34 +00:00
parent be81150bb4
commit 5d7bbec094

View file

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