Ignore:
Timestamp:
May 11, 2001, 10:39:46 AM (24 years ago)
Author:
sandervl
Message:

client/frame rewrite

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/caret.cpp

    r4976 r5685  
    1 /* $Id: caret.cpp,v 1.16 2001-01-19 23:03:45 sandervl Exp $ */
     1/* $Id: caret.cpp,v 1.17 2001-05-11 08:39:41 sandervl Exp $ */
    22
    33/*
     
    157157        else
    158158        {
    159            long height = wnd->getWindowHeight();
    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;
    162162           yNew = caretPos.y - cursorInfo.cy;
    163163        }
     
    208208         }
    209209         else {
    210             long height   = wnd->getWindowHeight();
     210            long height   = wnd->getClientHeight();
    211211            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;
    214213         }
    215214      }
Note: See TracChangeset for help on using the changeset viewer.