summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2019-08-06 16:44:44 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2019-08-06 16:44:44 (GMT)
commit9509d93c38781ea6af1b14e8ab0c794b858549cc (patch)
treeb55fe4afbea4fc237ceb21494eca51e0cd3af3bc
parent3d52470c7e973ec744d0b65be835e71f5ba79ca8 (diff)
downloadblt-9509d93c38781ea6af1b14e8ab0c794b858549cc.zip
blt-9509d93c38781ea6af1b14e8ab0c794b858549cc.tar.gz
blt-9509d93c38781ea6af1b14e8ab0c794b858549cc.tar.bz2
clean up code
-rw-r--r--tksao/frame/base.C8
-rw-r--r--tksao/frame/base.h2
2 files changed, 0 insertions, 10 deletions
diff --git a/tksao/frame/base.C b/tksao/frame/base.C
index f5dc495..aca84a2 100644
--- a/tksao/frame/base.C
+++ b/tksao/frame/base.C
@@ -82,8 +82,6 @@ Base::Base(Tcl_Interp* i, Tk_Canvas c, Tk_Item* item)
panPM = 0;
panGCXOR = XCreateGC(display, Tk_WindowId(tkwin), 0, NULL);
- rotateGCXOR = XCreateGC(display, Tk_WindowId(tkwin), 0, NULL);
-
pannerPixmap = 0;
pannerXImage = NULL;
pannerWidth = 0;
@@ -206,9 +204,6 @@ Base::~Base()
if (panGCXOR)
XFreeGC(display, panGCXOR);
- if (rotateGCXOR)
- XFreeGC(display, rotateGCXOR);
-
if (pannerGC)
XFreeGC(display, pannerGC);
@@ -1418,9 +1413,6 @@ void Base::updateGCs()
// panGCXOR
XSetClipRectangles(display, panGCXOR, 0, 0, rectWindow, 1, Unsorted);
- // rotateGCXOR
- XSetClipRectangles(display, rotateGCXOR, 0, 0, rectWindow, 1, Unsorted);
-
// markerGC
XSetClipRectangles(display, markerGC_, 0, 0, rectWidget, 1, Unsorted);
XSetClipRectangles(display, markerGCXOR_, 0, 0, rectWindow, 1, Unsorted);
diff --git a/tksao/frame/base.h b/tksao/frame/base.h
index d50b406..5e10ea8 100644
--- a/tksao/frame/base.h
+++ b/tksao/frame/base.h
@@ -186,8 +186,6 @@ public:
Vector panCursor; // cursor for interactive panning
GC panGCXOR; // GC for interactive panning
- GC rotateGCXOR; // GC for interactive rotation
-
Pixmap pannerPixmap; // pixmap for panner
XImage* pannerXImage; // ximage for panner
int pannerWidth; // panner width