[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/xfaces.c
From: |
YAMAMOTO Mitsuharu |
Subject: |
[Emacs-diffs] Changes to emacs/src/xfaces.c |
Date: |
Fri, 07 Oct 2005 22:28:56 -0400 |
Index: emacs/src/xfaces.c
diff -c emacs/src/xfaces.c:1.337 emacs/src/xfaces.c:1.338
*** emacs/src/xfaces.c:1.337 Sun Oct 2 03:28:56 2005
--- emacs/src/xfaces.c Sat Oct 8 02:28:55 2005
***************
*** 790,796 ****
--- 790,799 ----
XGCValues *xgcv;
{
GC gc;
+ BLOCK_INPUT;
gc = XCreateGC (FRAME_MAC_DISPLAY (f), FRAME_MAC_WINDOW (f), mask, xgcv);
+ UNBLOCK_INPUT;
+ IF_DEBUG (++ngcs);
return gc;
}
***************
*** 799,805 ****
--- 802,811 ----
struct frame *f;
GC gc;
{
+ BLOCK_INPUT;
+ IF_DEBUG (xassert (--ngcs >= 0));
XFreeGC (FRAME_MAC_DISPLAY (f), gc);
+ UNBLOCK_INPUT;
}
#endif /* MAC_OS */