kernel: devdraw: use sys->ticks instead of m->ticks in drawactive()

This commit is contained in:
Giacomo Tesio 2016-11-29 20:41:55 +01:00
parent 4e7138384f
commit 52777e21ab
1 changed files with 2 additions and 2 deletions

View File

@ -2214,9 +2214,9 @@ drawactive(int active)
{
if(active){
drawblankscreen(0);
sdraw.blanktime = m->ticks;
sdraw.blanktime = sys->ticks;
}else{
if(blanktime && sdraw.blanktime && TK2SEC(m->ticks - sdraw.blanktime)/60 >= blanktime)
if(blanktime && sdraw.blanktime && TK2SEC(sys->ticks - sdraw.blanktime)/60 >= blanktime)
drawblankscreen(1);
}
}