diff options
author | das <das> | 2007-05-30 06:35:54 (GMT) |
---|---|---|
committer | das <das> | 2007-05-30 06:35:54 (GMT) |
commit | e00615a5d3c288ef4b7f68c8240c3bba5021d30f (patch) | |
tree | d698fa040408e94632aa7a89b0599efb12078dfb /macosx/tkMacOSXDebug.c | |
parent | 93030c0e379205b68fde07efbbc102fd71f4923e (diff) | |
download | tk-e00615a5d3c288ef4b7f68c8240c3bba5021d30f.zip tk-e00615a5d3c288ef4b7f68c8240c3bba5021d30f.tar.gz tk-e00615a5d3c288ef4b7f68c8240c3bba5021d30f.tar.bz2 |
* macosx/tkMacOSXMenu.c (DrawMenuSeparator): use DrawingContext API.
* macosx/tkMacOSXWindowEvent.c (ClearPort): clip to updateRgn.
* macosx/tkMacOSXDebug.c: factor out debug region flashing.
* macosx/tkMacOSXDebug.h:
* macosx/tkMacOSXDraw.c:
* macosx/tkMacOSXSubwindows.c:
* macosx/tkMacOSXWindowEvent.c:
* macosx/tkMacOSXEvent.c: cleanup whitespace and formatting.
* macosx/tkMacOSXFont.c:
* macosx/tkMacOSXRegion.c:
* macosx/tkMacOSXSubwindows.c:
* macosx/tkMacOSXWindowEvent.c:
* macosx/tkMacOSXWm.c:
* macosx/tkMacOSXXStubs.c:
* xlib/xgc.c:
* macosx/Wish.xcodeproj/project.pbxproj: delete references to removed
* macosx/Wish.xcodeproj/default.pbxuser: ttk files.
Diffstat (limited to 'macosx/tkMacOSXDebug.c')
-rw-r--r-- | macosx/tkMacOSXDebug.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/macosx/tkMacOSXDebug.c b/macosx/tkMacOSXDebug.c index b0dc136..7d1fae6 100644 --- a/macosx/tkMacOSXDebug.c +++ b/macosx/tkMacOSXDebug.c @@ -54,7 +54,7 @@ * software in accordance with the terms specified in this * license. * - * RCS: @(#) $Id: tkMacOSXDebug.c,v 1.12 2007/04/23 21:24:33 das Exp $ + * RCS: @(#) $Id: tkMacOSXDebug.c,v 1.13 2007/05/30 06:35:54 das Exp $ */ #include "tkMacOSXInt.h" @@ -453,6 +453,22 @@ TkMacOSXMouseTrackingResultToAscii(MouseTrackingResult r, char * buf) } #endif /* TK_MACOSXDEBUG_UNUSED */ +MODULE_SCOPE void +TkMacOSXDebugFlashRegion( + CGrafPtr port, + RgnHandle rgn) +{ + TkMacOSXInitNamedDebugSymbol(HIToolbox, int, QDDebugFlashRegion, + CGrafPtr port, RgnHandle region); + if (port && rgn && QDDebugFlashRegion) { + /* + * Carbon-internal region flashing SPI (c.f. Technote 2124) + */ + + QDDebugFlashRegion(port, rgn); + } +} + /* *---------------------------------------------------------------------- * @@ -482,7 +498,9 @@ TkMacOSXMouseTrackingResultToAscii(MouseTrackingResult r, char * buf) */ MODULE_SCOPE void * -TkMacOSXGetNamedDebugSymbol(const char* module, const char* symbol) +TkMacOSXGetNamedDebugSymbol( + const char* module, + const char* symbol) { void* addr = TkMacOSXGetNamedSymbol(module, symbol); #ifndef __LP64__ |