summaryrefslogtreecommitdiffstats
path: root/src/bltGraph.C
diff options
context:
space:
mode:
authorjoye <joye>2014-05-13 15:49:23 (GMT)
committerjoye <joye>2014-05-13 15:49:23 (GMT)
commit1be6e25d00f76f32f9771b91727da9fc2e9d9925 (patch)
tree833001663f8f478348db24b9ca675c188baea7ad /src/bltGraph.C
parentd86e229eed5d65b1c1c01ee599eb1c3bd0be87a8 (diff)
downloadblt-1be6e25d00f76f32f9771b91727da9fc2e9d9925.zip
blt-1be6e25d00f76f32f9771b91727da9fc2e9d9925.tar.gz
blt-1be6e25d00f76f32f9771b91727da9fc2e9d9925.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltGraph.C')
-rw-r--r--src/bltGraph.C15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/bltGraph.C b/src/bltGraph.C
index 3a3a740..16455cb 100644
--- a/src/bltGraph.C
+++ b/src/bltGraph.C
@@ -218,7 +218,7 @@ void Graph::configure()
void Graph::map()
{
- // cerr << "Graph::map()" << endl;
+ cerr << "Graph::map()" << endl;
if (flags & RESET_AXES)
resetAxes();
@@ -239,7 +239,7 @@ void Graph::map()
void Graph::draw()
{
- // cerr << "Graph::draw()" << endl;
+ cerr << "Graph::draw()" << endl;
GraphOptions* ops = (GraphOptions*)ops_;
flags &= ~REDRAW_PENDING;
@@ -256,12 +256,8 @@ void Graph::draw()
map();
// Create a pixmap the size of the window for double buffering
- Pixmap drawable;
- if (ops->doubleBuffer)
- drawable = Tk_GetPixmap(display_, Tk_WindowId(tkwin_),
- width_, height_, Tk_Depth(tkwin_));
- else
- drawable = Tk_WindowId(tkwin_);
+ Pixmap drawable = Tk_GetPixmap(display_, Tk_WindowId(tkwin_),
+ width_, height_, Tk_Depth(tkwin_));
if (ops->backingStore) {
if ((cache_ == None)||(cacheWidth_ != width_)||(cacheHeight_ != height_)) {
@@ -324,8 +320,7 @@ void Graph::draw()
drawGC_, 0, 0, width_, height_, 0, 0);
enableCrosshairs();
- if (ops->doubleBuffer)
- Tk_FreePixmap(display_, drawable);
+ Tk_FreePixmap(display_, drawable);
flags &= ~MAP_WORLD;
flags &= ~REDRAW_WORLD;