< prev index next >
src/java.desktop/windows/native/libawt/windows/awt_Frame.cpp
Print this page
rev 60071 : 8211999: Window positioning bugs due to overlapping GraphicsDevice bounds (Windows/HiDPI)
Reviewed-by: XXX
@@ -327,21 +327,17 @@
jint height = env->GetIntField(target, AwtComponent::heightID);
frame->CreateHWnd(env, L"",
style,
exStyle,
- 0, 0, 0, 0,
+ x, y, width, height,
hwndParent,
NULL,
::GetSysColor(COLOR_WINDOWTEXT),
::GetSysColor(COLOR_WINDOWFRAME),
self);
- /*
- * Reshape here instead of during create, so that a
- * WM_NCCALCSIZE is sent.
- */
- frame->Reshape(x, y, width, height);
+ frame->RecalcNonClient();
}
}
} catch (...) {
env->DeleteLocalRef(target);
env->DeleteLocalRef(cls);
< prev index next >