Make help text for image and TTF request creation reflect reality.

Before this commit it would prompt for top left and bottom left
corner, neither of which was what in fact was being used. Those two
specific points cannot be used because of the way equations are
written, so instead change that to top left and bottom right, which
is more convenient anyway.
pull/434/head
EvilSpirit 2017-05-16 22:21:12 +07:00 committed by whitequark
parent 3296474c15
commit c9397eaa07
1 changed files with 10 additions and 8 deletions

View File

@ -1110,12 +1110,13 @@ void GraphicsWindow::MouseLeftDown(double mx, double my) {
r->str = "Abc";
r->font = "BitstreamVeraSans-Roman-builtin.ttf";
SK.GetEntity(hr.entity(1))->PointForceTo(v);
SK.GetEntity(hr.entity(2))->PointForceTo(v);
for(int i = 1; i <= 4; i++) {
SK.GetEntity(hr.entity(i))->PointForceTo(v);
}
pending.operation = Pending::DRAGGING_NEW_POINT;
pending.point = hr.entity(2);
pending.description = _("click to place bottom left of text");
pending.point = hr.entity(3);
pending.description = _("click to place bottom right of text");
break;
}
@ -1131,12 +1132,13 @@ void GraphicsWindow::MouseLeftDown(double mx, double my) {
Request *r = SK.GetRequest(hr);
r->file = pending.filename;
SK.GetEntity(hr.entity(1))->PointForceTo(v);
SK.GetEntity(hr.entity(2))->PointForceTo(v);
for(int i = 1; i <= 4; i++) {
SK.GetEntity(hr.entity(i))->PointForceTo(v);
}
pending.operation = Pending::DRAGGING_NEW_POINT;
pending.point = hr.entity(2);
pending.description = "click to place bottom left of image";
pending.point = hr.entity(3);
pending.description = "click to place bottom right of image";
break;
}