X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b02da6b18713d069cc9f4077f9b43df7a11bc7fb..d5c22d10423fe6271483ca1d6250a3543441a350:/include/wx/event.h diff --git a/include/wx/event.h b/include/wx/event.h index 10d5eb7970..0d90ca6b44 100644 --- a/include/wx/event.h +++ b/include/wx/event.h @@ -613,13 +613,15 @@ public: *ypos = m_y; } - void GetPosition(int *xpos, int *ypos) const +#ifndef __WIN16__ + void GetPosition(long *xpos, long *ypos) const { if (xpos) - *xpos = (int)m_x; + *xpos = (long)m_x; if (ypos) - *ypos = (int)m_y; + *ypos = (long)m_y; } +#endif // Find the position of the event wxPoint GetPosition() const { return wxPoint(m_x, m_y); } @@ -694,11 +696,13 @@ public: if (ypos) *ypos = m_y; } - void GetPosition(int *xpos, int *ypos) const +#ifndef __WIN16__ + void GetPosition(long *xpos, long *ypos) const { - if (xpos) *xpos = (int)m_x; - if (ypos) *ypos = (int)m_y; + if (xpos) *xpos = (long)m_x; + if (ypos) *ypos = (long)m_y; } +#endif wxPoint GetPosition() const { return wxPoint(m_x, m_y); }