diff options
author | nyamatongwe <unknown> | 2000-07-23 05:53:11 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2000-07-23 05:53:11 +0000 |
commit | ffa7426f0be1255a513e45881ad92b3b75367667 (patch) | |
tree | 6a01fb839db637d4e8c5f7e07506765e97853a57 /src | |
parent | a9c01fe906b1407c47a50dea0e13b7c15672bdfe (diff) | |
download | scintilla-mirror-ffa7426f0be1255a513e45881ad92b3b75367667.tar.gz |
Changed SCI_POSITIONFROMPOINT to take x,y parameters rather than a pointer
to a POINT structure.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index f9cf12f9e..27dd57238 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3572,12 +3572,8 @@ long Editor::WndProc(unsigned int iMessage, unsigned long wParam, long lParam) { Redraw(); break; - case SCI_POSITIONFROMPOINT: { - if (lParam == 0) - return 0; - Point *ppt = reinterpret_cast<Point *>(lParam); - return PositionFromLocation(*ppt); - } + case SCI_POSITIONFROMPOINT: + return PositionFromLocation(Point(wParam, lParam)); case SCI_GOTOLINE: GoToLine(wParam); |