< prev index next >
src/java.desktop/windows/native/libawt/windows/awt_Component.cpp
Print this page
*** 3884,3899 ****
HWND hTop = GetTopLevelParentForWindow(hWnd);
::ClientToScreen(hTop, &p);
int sx = ScaleUpX(x) - p.x;
int sy = ScaleUpY(y) - p.y;
if (!m_bitsCandType) {
! SetCandidateWindow(m_bitsCandType, sx, sy);
return;
}
for (int iCandType=0; iCandType<32; iCandType++, bits<<=1) {
if ( m_bitsCandType & bits )
! SetCandidateWindow(iCandType, sx, sy);
}
}
void AwtComponent::SetCandidateWindow(int iCandType, int x, int y)
{
--- 3884,3899 ----
HWND hTop = GetTopLevelParentForWindow(hWnd);
::ClientToScreen(hTop, &p);
int sx = ScaleUpX(x) - p.x;
int sy = ScaleUpY(y) - p.y;
if (!m_bitsCandType) {
! SetCandidateWindow(static_cast<int>(m_bitsCandType), sx, sy);
return;
}
for (int iCandType=0; iCandType<32; iCandType++, bits<<=1) {
if ( m_bitsCandType & bits )
! SetCandidateWindow(static_cast<int>(iCandType), sx, sy);
}
}
void AwtComponent::SetCandidateWindow(int iCandType, int x, int y)
{
< prev index next >