diff options
author | culler <culler> | 2021-04-22 13:05:42 (GMT) |
---|---|---|
committer | culler <culler> | 2021-04-22 13:05:42 (GMT) |
commit | ebcc71e5fa8f626759fb83cfa19bf70c4094298d (patch) | |
tree | d38567126f4750358e4635afe76626ab8f5c0d0a /macosx/ttkMacOSXTheme.c | |
parent | 68040c67a97bac21a3c6558217ffec8273aa114e (diff) | |
download | tk-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.c | 11 |
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 { |