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
|
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;
|
||||||
|
|
Loading…
Reference in a new issue