mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
Native window decorations: fixed occasional double window title bar when creating many frames or dialogs (issue #315)
This commit is contained in:
@@ -43,6 +43,8 @@ FlatLaf Change Log
|
||||
`FlatPopupFactory.fixToolTipLocation()`. (issue #305)
|
||||
- IntelliJ Themes: Fixed background colors of DesktopPane and DesktopIcon in all
|
||||
themes.
|
||||
- Native window decorations: Fixed occasional double window title bar when
|
||||
creating many frames or dialogs. (issue #315)
|
||||
|
||||
|
||||
## 1.1.2
|
||||
|
||||
@@ -102,17 +102,17 @@ void HWNDMap::remove( HWND key ) {
|
||||
}
|
||||
|
||||
int HWNDMap::binarySearch( HWND key ) {
|
||||
__int64 ikey = reinterpret_cast<__int64>( key );
|
||||
int low = 0;
|
||||
int high = size - 1;
|
||||
|
||||
while( low <= high ) {
|
||||
int mid = (low + high) >> 1;
|
||||
|
||||
HWND midKey = table[mid].key;
|
||||
int cmp = midKey - key;
|
||||
if( cmp < 0 )
|
||||
__int64 midKey = reinterpret_cast<__int64>( table[mid].key );
|
||||
if( midKey < ikey )
|
||||
low = mid + 1;
|
||||
else if( cmp > 0 )
|
||||
else if( midKey > ikey )
|
||||
high = mid - 1;
|
||||
else
|
||||
return mid;
|
||||
|
||||
Reference in New Issue
Block a user