diff options
author | joye <joye> | 2014-04-22 18:06:31 (GMT) |
---|---|---|
committer | joye <joye> | 2014-04-22 18:06:31 (GMT) |
commit | dfe0cf8222ead76e0618e19088bd651cc4135d4e (patch) | |
tree | 067584ad30d2a4a66b28e7406d080a8c4bc0f84d /bltGrMarkerBitmap.C | |
parent | d057058a5547241b50fb6516bdd1fbefbb1b3654 (diff) | |
download | blt-dfe0cf8222ead76e0618e19088bd651cc4135d4e.zip blt-dfe0cf8222ead76e0618e19088bd651cc4135d4e.tar.gz blt-dfe0cf8222ead76e0618e19088bd651cc4135d4e.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'bltGrMarkerBitmap.C')
-rw-r--r-- | bltGrMarkerBitmap.C | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bltGrMarkerBitmap.C b/bltGrMarkerBitmap.C index d8e63b6..16838e2 100644 --- a/bltGrMarkerBitmap.C +++ b/bltGrMarkerBitmap.C @@ -63,9 +63,9 @@ static Tk_OptionSpec optionSpecs[] = { {TK_OPTION_BOOLEAN, "-hide", "hide", "Hide", "no", -1, Tk_Offset(BitmapMarkerOptions, hide), 0, NULL, 0}, {TK_OPTION_CUSTOM, "-mapx", "mapX", "MapX", - "x", -1, Tk_Offset(BitmapMarkerOptions, axes.x), 0, &xAxisObjOption, 0}, + "x", -1, Tk_Offset(BitmapMarkerOptions, xAxis), 0, &xAxisObjOption, 0}, {TK_OPTION_CUSTOM, "-mapy", "mapY", "MapY", - "y", -1, Tk_Offset(BitmapMarkerOptions, axes.y), 0, &yAxisObjOption, 0}, + "y", -1, Tk_Offset(BitmapMarkerOptions, yAxis), 0, &yAxisObjOption, 0}, {TK_OPTION_SYNONYM, "-outline", NULL, NULL, NULL, -1, 0, 0, "-foreground", 0}, {TK_OPTION_STRING_TABLE, "-state", "state", "State", "normal", -1, Tk_Offset(BitmapMarkerOptions, state), 0, &stateObjOption, 0}, @@ -181,7 +181,7 @@ void BitmapMarker::map() int lheight; Tk_SizeOfBitmap(graphPtr_->display_, ops->bitmap, &lwidth, &lheight); - Point2d lanchorPt = mapPoint(ops->worldPts->points, &ops->axes); + Point2d lanchorPt = mapPoint(ops->worldPts->points, ops->xAxis, ops->yAxis); lanchorPt = Blt_AnchorPoint(lanchorPt.x, lanchorPt.y, lwidth, lheight, ops->anchor); lanchorPt.x += ops->xOffset; |