zynq: fix flushmemscreen()
This commit is contained in:
parent
be36fab405
commit
c89b0b3c23
1 changed files with 4 additions and 2 deletions
|
@ -41,7 +41,10 @@ setcursor(Cursor*)
|
|||
void
|
||||
flushmemscreen(Rectangle r)
|
||||
{
|
||||
combinerect(&fbscreen.rect, r);
|
||||
if(badrect(fbscreen.rect))
|
||||
fbscreen.rect = r;
|
||||
else
|
||||
combinerect(&fbscreen.rect, r);
|
||||
wakeup(&fbscreen);
|
||||
}
|
||||
|
||||
|
@ -117,7 +120,6 @@ flushproc(void *arg)
|
|||
|
||||
fbscreen.proc = up;
|
||||
if(waserror()){
|
||||
print("flushproc: %s\n", up->errstr);
|
||||
fbscreen.addr = 0;
|
||||
fbscreen.proc = nil;
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue