Changeset 5685 for trunk/src/user32/caret.cpp
- Timestamp:
- May 11, 2001, 10:39:46 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/user32/caret.cpp
r4976 r5685 1 /* $Id: caret.cpp,v 1.1 6 2001-01-19 23:03:45sandervl Exp $ */1 /* $Id: caret.cpp,v 1.17 2001-05-11 08:39:41 sandervl Exp $ */ 2 2 3 3 /* … … 157 157 else 158 158 { 159 long height = wnd->get WindowHeight();160 caretPos.y = height - (caretPos.y + wnd->getClientRectPtr()->top) - 1;161 xNew = caretPos.x + wnd->getClientRectPtr()->left;159 long height = wnd->getClientHeight(); 160 caretPos.y = height - caretPos.y; 161 xNew = caretPos.x; 162 162 yNew = caretPos.y - cursorInfo.cy; 163 163 } … … 208 208 } 209 209 else { 210 long height = wnd->get WindowHeight();210 long height = wnd->getClientHeight(); 211 211 caretPos.y += cursorInfo.cy; 212 cursorInfo.y = height - caretPos.y - wnd->getClientRectPtr()->top - 1; 213 cursorInfo.x -= wnd->getClientRectPtr()->left; 212 cursorInfo.y = height - caretPos.y; 214 213 } 215 214 }
Note:
See TracChangeset
for help on using the changeset viewer.