libdraw: get rid of _drawdebug variable
This commit is contained in:
parent
ca2fa9596b
commit
d4a6dc8910
3 changed files with 2 additions and 7 deletions
|
@ -509,7 +509,6 @@ extern Font *font;
|
||||||
extern Image *screen;
|
extern Image *screen;
|
||||||
extern Screen *_screen;
|
extern Screen *_screen;
|
||||||
extern int _cursorfd;
|
extern int _cursorfd;
|
||||||
extern int _drawdebug; /* set to 1 to see errors from flushimage */
|
|
||||||
extern void _setdrawop(Display*, Drawop);
|
extern void _setdrawop(Display*, Drawop);
|
||||||
|
|
||||||
#define BGSHORT(p) ((p)[0]|((p)[1]<<8))
|
#define BGSHORT(p) ((p)[0]|((p)[1]<<8))
|
||||||
|
|
|
@ -502,7 +502,6 @@ extern Font *font;
|
||||||
extern Image *screen;
|
extern Image *screen;
|
||||||
extern Screen *_screen;
|
extern Screen *_screen;
|
||||||
extern int _cursorfd;
|
extern int _cursorfd;
|
||||||
extern int _drawdebug; /* set to 1 to see errors from flushimage */
|
|
||||||
extern void _setdrawop(Display*, Drawop);
|
extern void _setdrawop(Display*, Drawop);
|
||||||
|
|
||||||
#define BGSHORT(p) ((p)[0]|((p)[1]<<8))
|
#define BGSHORT(p) ((p)[0]|((p)[1]<<8))
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
Display *display;
|
Display *display;
|
||||||
Font *font;
|
Font *font;
|
||||||
Image *screen;
|
Image *screen;
|
||||||
int _drawdebug = 0;
|
|
||||||
|
|
||||||
static char deffontname[] = "*default*";
|
static char deffontname[] = "*default*";
|
||||||
Screen *_screen;
|
Screen *_screen;
|
||||||
|
@ -411,15 +410,13 @@ static
|
||||||
int
|
int
|
||||||
doflush(Display *d)
|
doflush(Display *d)
|
||||||
{
|
{
|
||||||
int n, nn;
|
int n;
|
||||||
|
|
||||||
n = d->bufp-d->buf;
|
n = d->bufp-d->buf;
|
||||||
if(n <= 0)
|
if(n <= 0)
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
if((nn=write(d->fd, d->buf, n)) != n){
|
if(write(d->fd, d->buf, n) != n){
|
||||||
if(_drawdebug)
|
|
||||||
fprint(2, "flushimage fail: d=%p: n=%d nn=%d %r\n", d, n, nn); /**/
|
|
||||||
d->bufp = d->buf; /* might as well; chance of continuing */
|
d->bufp = d->buf; /* might as well; chance of continuing */
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue