zynq: fix flushmemscreen()

This commit is contained in:
cinap_lenrek 2015-06-10 01:27:44 +02:00
parent be36fab405
commit c89b0b3c23

View file

@ -41,7 +41,10 @@ setcursor(Cursor*)
void void
flushmemscreen(Rectangle r) flushmemscreen(Rectangle r)
{ {
combinerect(&fbscreen.rect, r); if(badrect(fbscreen.rect))
fbscreen.rect = r;
else
combinerect(&fbscreen.rect, r);
wakeup(&fbscreen); wakeup(&fbscreen);
} }
@ -117,7 +120,6 @@ flushproc(void *arg)
fbscreen.proc = up; fbscreen.proc = up;
if(waserror()){ if(waserror()){
print("flushproc: %s\n", up->errstr);
fbscreen.addr = 0; fbscreen.addr = 0;
fbscreen.proc = nil; fbscreen.proc = nil;
return; return;