diff options
author | joye <joye> | 2014-04-02 21:05:40 (GMT) |
---|---|---|
committer | joye <joye> | 2014-04-02 21:05:40 (GMT) |
commit | 8caa381d7de028759d2df259c629989adb568e30 (patch) | |
tree | 8b83e16eef3b7059883cd7bad63bcab2c284d4f6 /src/bltGraph.C | |
parent | e58952262da1371d725aaf2c2996edeec8cdb8c5 (diff) | |
download | blt-8caa381d7de028759d2df259c629989adb568e30.zip blt-8caa381d7de028759d2df259c629989adb568e30.tar.gz blt-8caa381d7de028759d2df259c629989adb568e30.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'src/bltGraph.C')
-rw-r--r-- | src/bltGraph.C | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/bltGraph.C b/src/bltGraph.C index 15a01d8..64b1783 100644 --- a/src/bltGraph.C +++ b/src/bltGraph.C @@ -281,8 +281,8 @@ static int NewGraph(ClientData clientData, Tcl_Interp*interp, GraphInstCmdDeleteProc); graphPtr->optionTable = optionTable; graphPtr->classId = classId; - graphPtr->backingStore = TRUE; - graphPtr->doubleBuffer = TRUE; + graphPtr->backingStore = 1; + graphPtr->doubleBuffer = 1; graphPtr->borderWidth = 2; graphPtr->plotBW = 1; graphPtr->highlightWidth = 2; @@ -1034,7 +1034,7 @@ static ClientData PickEntry(ClientData clientData, int x, int y, // 1. markers drawn on top (-under false). // 2. elements using its display list back to front. // 3. markers drawn under element (-under true). - Marker* markerPtr = (Marker*)Blt::NearestMarker(graphPtr, x, y, FALSE); + Marker* markerPtr = (Marker*)Blt::NearestMarker(graphPtr, x, y, 0); if (markerPtr) { *contextPtr = (ClientData)markerPtr->classId(); return markerPtr; @@ -1054,8 +1054,7 @@ static ClientData PickEntry(ClientData clientData, int x, int y, if (elemPtr->hide || (elemPtr->flags & MAP_ITEM)) continue; - if (elemPtr->state == BLT_STATE_NORMAL) - (*elemPtr->procsPtr->closestProc) (graphPtr, elemPtr); + (*elemPtr->procsPtr->closestProc) (graphPtr, elemPtr); } // Found an element within the minimum halo distance. if (searchPtr->dist <= (double)searchPtr->halo) { @@ -1063,7 +1062,7 @@ static ClientData PickEntry(ClientData clientData, int x, int y, return searchPtr->elemPtr; } - markerPtr = (Marker*)Blt::NearestMarker(graphPtr, x, y, TRUE); + markerPtr = (Marker*)Blt::NearestMarker(graphPtr, x, y, 1); if (markerPtr) { *contextPtr = (ClientData)markerPtr->classId(); return markerPtr; |