projects
/
traingame.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cffb75f
)
Fix one more editor positioning
author
Nick Gasson <nick@nickg.me.uk>
Wed, 22 Apr 2009 19:21:13 +0000
(20:21 +0100)
committer
Nick Gasson <nick@nickg.me.uk>
Wed, 22 Apr 2009 19:21:13 +0000
(20:21 +0100)
src/Editor.cpp
patch
|
blob
|
history
diff --git
a/src/Editor.cpp
b/src/Editor.cpp
index fb7687aedc80f2036e474d1e4fd1280d32d0f38a..e4381d113bd483705a92a13cef540dec9d8db6ba 100644
(file)
--- a/
src/Editor.cpp
+++ b/
src/Editor.cpp
@@
-225,10
+225,12
@@
void Editor::drawDraggedCurve(int xLength, int yLength)
ITrackSegmentPtr curve;
if (myDragBegin.y < myDragEnd.y) {
- curve = makeCurvedTrack(180, 270, xLength);
+ where = myDragEnd;
+ curve = makeCurvedTrack(90, 180, xLength);
next = makePoint(where.x + xLength - 1, where.y + xLength);
}
else {
+ where = myDragBegin;
curve = makeCurvedTrack(0, 90, xLength);
next = makePoint(where.x + xLength - 1,
where.y - yLength + 1);