mirror of https://github.com/0intro/conterm
silly sun
This commit is contained in:
parent
083b5a0e40
commit
964d0bdc57
|
@ -141,7 +141,7 @@ putstrn0(char *str, int n, int usewrite)
|
||||||
qwrite(kprintoq, str, n);
|
qwrite(kprintoq, str, n);
|
||||||
else
|
else
|
||||||
qiwrite(kprintoq, str, n);
|
qiwrite(kprintoq, str, n);
|
||||||
}else if(screenputs != nil)
|
}else if(screenputs != 0)
|
||||||
screenputs(str, n);
|
screenputs(str, n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1177,7 +1177,7 @@ iprint(char *fmt, ...)
|
||||||
va_start(arg, fmt);
|
va_start(arg, fmt);
|
||||||
n = vseprint(buf, buf+sizeof(buf), fmt, arg) - buf;
|
n = vseprint(buf, buf+sizeof(buf), fmt, arg) - buf;
|
||||||
va_end(arg);
|
va_end(arg);
|
||||||
if(screenputs != nil && iprintscreenputs)
|
if(screenputs != 0 && iprintscreenputs)
|
||||||
screenputs(buf, n);
|
screenputs(buf, n);
|
||||||
#undef write
|
#undef write
|
||||||
write(2, buf, n);
|
write(2, buf, n);
|
||||||
|
|
|
@ -35,7 +35,7 @@ memunload(Memimage *src, Rectangle r, uchar *data, int n)
|
||||||
* src is an obscured layer or data is unaligned
|
* src is an obscured layer or data is unaligned
|
||||||
*/
|
*/
|
||||||
if(dl->save && dx==0){
|
if(dl->save && dx==0){
|
||||||
if(dl->refreshfn != nil)
|
if(dl->refreshfn != 0)
|
||||||
return -1; /* can't unload window if it's not Refbackup */
|
return -1; /* can't unload window if it's not Refbackup */
|
||||||
if(n > 0)
|
if(n > 0)
|
||||||
memlhide(src, r);
|
memlhide(src, r);
|
||||||
|
|
Loading…
Reference in New Issue