mirror of
https://github.com/reactos/wine.git
synced 2025-01-27 15:02:26 +00:00
shell32: Properly handle negative coordinates for mouse events.
This commit is contained in:
parent
33b346613e
commit
ff068c088b
@ -163,7 +163,7 @@ static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTA* cs)
|
||||
#define YICON 32
|
||||
#define YSTEP 64
|
||||
|
||||
static BOOL Control_Localize(const CPanel* panel, unsigned cx, unsigned cy,
|
||||
static BOOL Control_Localize(const CPanel* panel, int cx, int cy,
|
||||
CPlApplet** papplet, unsigned* psp)
|
||||
{
|
||||
unsigned i, x = (XSTEP-XICON)/2, y = 0;
|
||||
@ -228,7 +228,7 @@ static LRESULT Control_WndProc_LButton(CPanel* panel, LPARAM lParam, BOOL up)
|
||||
unsigned i;
|
||||
CPlApplet* applet;
|
||||
|
||||
if (Control_Localize(panel, LOWORD(lParam), HIWORD(lParam), &applet, &i)) {
|
||||
if (Control_Localize(panel, (short)LOWORD(lParam), (short)HIWORD(lParam), &applet, &i)) {
|
||||
if (up) {
|
||||
if (panel->clkApplet == applet && panel->clkSP == i) {
|
||||
applet->proc(applet->hWnd, CPL_DBLCLK, i, applet->info[i].lData);
|
||||
|
Loading…
x
Reference in New Issue
Block a user