diff options
author | das <das@noemail.net> | 2007-03-07 23:49:37 (GMT) |
---|---|---|
committer | das <das@noemail.net> | 2007-03-07 23:49:37 (GMT) |
commit | 9035653666497aa9f00ae2d595b2660d5f9093f4 (patch) | |
tree | 002fdaf1f1d1e38612d2e1dcc8ea54218e1f1aac /generic/ttk/ttkWidget.c | |
parent | 00c0c2b4eb2c0e388068aaa0b57de64ee916ce77 (diff) | |
download | tk-9035653666497aa9f00ae2d595b2660d5f9093f4.zip tk-9035653666497aa9f00ae2d595b2660d5f9093f4.tar.gz tk-9035653666497aa9f00ae2d595b2660d5f9093f4.tar.bz2 |
revert premature commit
FossilOrigin-Name: 9545288f925d807f05733d3f9dcba238b75fb944
Diffstat (limited to 'generic/ttk/ttkWidget.c')
-rw-r--r-- | generic/ttk/ttkWidget.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/generic/ttk/ttkWidget.c b/generic/ttk/ttkWidget.c index 4562973..98992ce 100644 --- a/generic/ttk/ttkWidget.c +++ b/generic/ttk/ttkWidget.c @@ -1,4 +1,4 @@ -/* $Id: ttkWidget.c,v 1.5 2007/03/07 23:46:34 das Exp $ +/* $Id: ttkWidget.c,v 1.6 2007/03/07 23:49:38 das Exp $ * Copyright (c) 2003, Joe English * * Ttk widget implementation, core widget utilities. @@ -10,10 +10,6 @@ #include "ttkTheme.h" #include "ttkWidget.h" -#ifdef MAC_OSX_TK -#define TK_NO_DOUBLE_BUFFERING 1 -#endif - /*------------------------------------------------------------------------ * +++ Internal helper routines. */ @@ -62,17 +58,14 @@ static void RedisplayWidget(ClientData recordPtr) WidgetCore *corePtr = (WidgetCore *)recordPtr; Tk_Window tkwin = corePtr->tkwin; Drawable d; -#ifndef TK_NO_DOUBLE_BUFFERING XGCValues gcValues; GC gc; -#endif corePtr->flags &= ~REDISPLAY_PENDING; if (!Tk_IsMapped(tkwin)) { return; } -#ifndef TK_NO_DOUBLE_BUFFERING /* * Get a Pixmap for drawing in the background: */ @@ -86,9 +79,6 @@ static void RedisplayWidget(ClientData recordPtr) gcValues.function = GXcopy; gcValues.graphics_exposures = False; gc = Tk_GetGC(corePtr->tkwin, GCFunction|GCGraphicsExposures, &gcValues); -#else - d = Tk_WindowId(tkwin); -#endif /* * Recompute layout and draw widget contents: @@ -96,7 +86,6 @@ static void RedisplayWidget(ClientData recordPtr) corePtr->widgetSpec->layoutProc(recordPtr); corePtr->widgetSpec->displayProc(recordPtr, d); -#ifndef TK_NO_DOUBLE_BUFFERING /* * Copy to the screen. */ @@ -109,7 +98,6 @@ static void RedisplayWidget(ClientData recordPtr) */ Tk_FreePixmap(Tk_Display(tkwin), d); Tk_FreeGC(Tk_Display(tkwin), gc); -#endif } /* TtkRedisplayWidget -- |