--- old/src/java.desktop/windows/native/common/awt/systemscale/systemScale.cpp 2019-11-07 09:09:56.135430500 +0900 +++ new/src/java.desktop/windows/native/common/awt/systemscale/systemScale.cpp 2019-11-07 09:09:55.542154700 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -93,7 +93,10 @@ __uuidof(ID2D1Factory), NULL, &m_pDirect2dFactory); if (res == S_OK) { +#pragma warning(push) +#pragma warning(disable : 4996) // GetDesktopDpi is deprecated. m_pDirect2dFactory->GetDesktopDpi(dpiX, dpiY); +#pragma warning(pop) m_pDirect2dFactory->Release(); } }