diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-26 13:36:55 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-26 13:36:55 (GMT) |
commit | bc1b481b1b3661958beec5f99e123d503749accb (patch) | |
tree | 98686a7656eb1752d0e866e766c8451c92aee26d /macosx/tkMacOSXPrivate.h | |
parent | 1618e2bbee42caa1010a3071f26917e298ba6ab7 (diff) | |
download | tk-bc1b481b1b3661958beec5f99e123d503749accb.zip tk-bc1b481b1b3661958beec5f99e123d503749accb.tar.gz tk-bc1b481b1b3661958beec5f99e123d503749accb.tar.bz2 |
Another simplification: Change TkMacOSXDrawableView() from a MODULE_SCOPE function to a macro. This saves an empty wrapper-function for TkMacOSXGetRootControl()
Diffstat (limited to 'macosx/tkMacOSXPrivate.h')
-rw-r--r-- | macosx/tkMacOSXPrivate.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXPrivate.h b/macosx/tkMacOSXPrivate.h index 1091d7c..c632986 100644 --- a/macosx/tkMacOSXPrivate.h +++ b/macosx/tkMacOSXPrivate.h @@ -271,7 +271,7 @@ MODULE_SCOPE int TkMacOSXMakeFullscreen(TkWindow *winPtr, MODULE_SCOPE void TkMacOSXEnterExitFullscreen(TkWindow *winPtr, int active); MODULE_SCOPE NSWindow* TkMacOSXDrawableWindow(Drawable drawable); -MODULE_SCOPE NSView* TkMacOSXDrawableView(MacDrawable *macWin); +#define TkMacOSXDrawableView(macWin) (NSView *)TkMacOSXGetRootControl((Drawable)(macWin)) MODULE_SCOPE void TkMacOSXWinCGBounds(TkWindow *winPtr, CGRect *bounds); MODULE_SCOPE HIShapeRef TkMacOSXGetClipRgn(Drawable drawable); MODULE_SCOPE void TkMacOSXInvalidateViewRegion(NSView *view, |