Mercurial > dwindows
comparison os2/dw.c @ 956:a3e4cebf3c99
Fixed incorrectly using _get_frame_height() instead of _get_height() which resulted
in bogus Y values being passed in motion notify callbacks on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Mon, 02 May 2011 01:45:16 +0000 |
parents | 71b0e132d9df |
children | e3425875a03a |
comparison
equal
deleted
inserted
replaced
955:8b73a45ae424 | 956:a3e4cebf3c99 |
---|---|
2365 if (WinGetKeyState(HWND_DESKTOP, VK_BUTTON2) & 0x8000) | 2365 if (WinGetKeyState(HWND_DESKTOP, VK_BUTTON2) & 0x8000) |
2366 keys |= DW_BUTTON2_MASK; | 2366 keys |= DW_BUTTON2_MASK; |
2367 if (WinGetKeyState(HWND_DESKTOP, VK_BUTTON3) & 0x8000) | 2367 if (WinGetKeyState(HWND_DESKTOP, VK_BUTTON3) & 0x8000) |
2368 keys |= DW_BUTTON3_MASK; | 2368 keys |= DW_BUTTON3_MASK; |
2369 | 2369 |
2370 result = motionfunc(tmp->window, x, _get_frame_height(tmp->window) - y, keys, tmp->data); | 2370 result = motionfunc(tmp->window, x, _get_height(hWnd) - y, keys, tmp->data); |
2371 tmp = NULL; | 2371 tmp = NULL; |
2372 } | 2372 } |
2373 } | 2373 } |
2374 break; | 2374 break; |
2375 case WM_CHAR: | 2375 case WM_CHAR: |