zynq: fix flushmemscreen()

front
cinap_lenrek 2015-06-10 01:27:44 +02:00
parent be36fab405
commit c89b0b3c23
1 changed files with 4 additions and 2 deletions

View File

@ -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;