summaryrefslogtreecommitdiffstats
path: root/macosx/ttkMacOSXTheme.c
diff options
context:
space:
mode:
authorculler <culler>2021-04-22 13:05:42 (GMT)
committerculler <culler>2021-04-22 13:05:42 (GMT)
commitebcc71e5fa8f626759fb83cfa19bf70c4094298d (patch)
treed38567126f4750358e4635afe76626ab8f5c0d0a /macosx/ttkMacOSXTheme.c
parent68040c67a97bac21a3c6558217ffec8273aa114e (diff)
downloadtk-ebcc71e5fa8f626759fb83cfa19bf70c4094298d.zip
tk-ebcc71e5fa8f626759fb83cfa19bf70c4094298d.tar.gz
tk-ebcc71e5fa8f626759fb83cfa19bf70c4094298d.tar.bz2
Cherrypick removal of BEGIN_DRAWING_OR_REDRAW
Diffstat (limited to 'macosx/ttkMacOSXTheme.c')
-rw-r--r--macosx/ttkMacOSXTheme.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c
index 5a9057c..64cbce6 100644
--- a/macosx/ttkMacOSXTheme.c
+++ b/macosx/ttkMacOSXTheme.c
@@ -42,15 +42,6 @@
return; \
} \
-#define BEGIN_DRAWING_OR_REDRAW(d) { \
- TkMacOSXDrawingContext dc; \
- if (!TkMacOSXSetupDrawingContext((d), NULL, &dc)) { \
- NSView *view = TkMacOSXGetNSViewForDrawable(d); \
- while (Tcl_DoOneEvent(TCL_IDLE_EVENTS)) {} \
- [(TKContentView *)view addTkDirtyRect:[view bounds]]; \
- return; \
- } \
-
#define END_DRAWING \
TkMacOSXRestoreDrawingContext(&dc);}
@@ -1614,7 +1605,7 @@ static void TabElementDraw(
.position = Ttk_StateTableLookup(TabPositionTable, state),
};
- BEGIN_DRAWING_OR_REDRAW(d)
+ BEGIN_DRAWING(d)
if (TkMacOSXInDarkMode(tkwin)) {
DrawDarkTab(bounds, state, dc.context);
} else {