ref: c89b0b3c238ff4e288f259be211f3b878bd0c30d
parent: be36fab405e70b01b319cfa3aa2cd2ca8feaf6c6
author: cinap_lenrek <[email protected]>
date: Tue Jun 9 21:27:44 EDT 2015
zynq: fix flushmemscreen()
--- a/sys/src/9/zynq/screen.c
+++ b/sys/src/9/zynq/screen.c
@@ -41,7 +41,10 @@
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 @@
fbscreen.proc = up;
if(waserror()){
- print("flushproc: %s\n", up->errstr);
fbscreen.addr = 0;
fbscreen.proc = nil;
return;