Skip to content

Commit ec51af5

Browse files
committed
Fixed page up jumps to bottom
1 parent 6f5da00 commit ec51af5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Position.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ REG_T GetPosFromChar(EDIT *pMem, DWORD cp, REG_T lpPoint)
566566

567567
} // GetPosFromChar
568568

569-
REG_T GetCharFromPos(EDIT *pMem, DWORD cpy, DWORD x, DWORD y)
569+
REG_T GetCharFromPos(EDIT *pMem, DWORD cpy, SDWORD x, SDWORD y)
570570
{
571571
REG_T eax = 0, edx;
572572
REG_T temp1;

Position.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ REG_T GetYpFromLine(EDIT *pMem, DWORD nLine);
1111
REG_T GetLineFromYp(EDIT *pMem, DWORD y);
1212
REG_T GetCpFromXp(EDIT *pMem, REG_T lpChars, DWORD x, DWORD fNoAdjust);
1313
REG_T GetPosFromChar(EDIT *pMem, DWORD cp, REG_T lpPoint);
14-
REG_T GetCharFromPos(EDIT *pMem, DWORD cpy, DWORD x, DWORD y);
14+
REG_T GetCharFromPos(EDIT *pMem, DWORD cpy, SDWORD x, SDWORD y);
1515
REG_T GetCaretPoint(EDIT *pMem, DWORD cp, DWORD cpy, REG_T lpPoint);
1616
REG_T SetCaret(EDIT *pMem, DWORD cpy);
1717
REG_T ScrollEdit(EDIT *pMem, HWND hWin, DWORD x, DWORD y);

0 commit comments

Comments
 (0)