xfreerdp-client: fix mouse position issue for scale

This commit is contained in:
C-o-r-E 2013-05-15 12:12:47 -04:00
parent b1e603fb2e
commit cff999e7e3
2 changed files with 2 additions and 7 deletions

View File

@ -170,13 +170,6 @@ static BOOL xf_event_MotionNotify(xfInfo* xfi, XEvent* event, BOOL app)
y = (int)(y * (1.0 / xfi->scale) );
}
if (xfi->scale != 1.0)
{
/* Take scaling in to consideration */
x = (int) (x * (1.0 / xfi->scale));
y = (int) (y * (1.0 / xfi->scale));
}
input->MouseEvent(input, PTR_FLAGS_MOVE, x, y);
if (xfi->fullscreen)

View File

@ -1555,6 +1555,8 @@ void* xf_thread(void* param)
gdi_free(instance);
ExitThread(exit_code);
return NULL;
}
DWORD xf_exit_code_from_disconnect_reason(DWORD reason)