From d8a012161ad68d08467a6632c2bfb7c4dc341d28 Mon Sep 17 00:00:00 2001 From: Harshitha Onkar Date: Mon, 3 Jul 2023 20:43:17 +0000 Subject: [PATCH] 8311109: tautological-compare warning in awt_Win32GraphicsDevice.cpp Reviewed-by: aivanov --- .../windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp b/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp index 1e9b492161f..b319ff87f52 100644 --- a/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp +++ b/src/java.desktop/windows/native/libawt/windows/awt_Win32GraphicsDevice.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1999, 2023, 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 @@ -899,7 +899,7 @@ BOOL AwtWin32GraphicsDevice::AreSameMonitors(HMONITOR mon1, HMONITOR mon2) { { if (::EqualRect(&mi1.rcMonitor, &mi2.rcMonitor) && ::EqualRect(&mi1.rcWork, &mi2.rcWork) && - (mi1.dwFlags == mi1.dwFlags)) + (mi1.dwFlags == mi2.dwFlags)) { J2dTraceLn(J2D_TRACE_VERBOSE, " the monitors are the same");