< prev index next >

src/java.desktop/windows/native/libawt/windows/awt_Button.cpp

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 1996, 2011, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 1996, 2015, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 240,250 **** if (drawInfo.itemState & ODS_FOCUS){ const int inf = 3; /* heuristic decision */ RECT focusRect; VERIFY(::CopyRect(&focusRect, &rect)); VERIFY(::InflateRect(&focusRect,-inf,-inf)); ! VERIFY(::DrawFocusRect(hDC, &focusRect)); } /* Notify any subclasses */ DoCallback("handlePaint", "(IIII)V", rect.left, rect.top, rect.right-rect.left, rect.bottom-rect.top); --- 240,251 ---- if (drawInfo.itemState & ODS_FOCUS){ const int inf = 3; /* heuristic decision */ RECT focusRect; VERIFY(::CopyRect(&focusRect, &rect)); VERIFY(::InflateRect(&focusRect,-inf,-inf)); ! if(::DrawFocusRect(hDC, &focusRect) == 0) ! VERIFY(::GetLastError() == 0); } /* Notify any subclasses */ DoCallback("handlePaint", "(IIII)V", rect.left, rect.top, rect.right-rect.left, rect.bottom-rect.top);
< prev index next >