mirror of
https://github.com/reactos/wine.git
synced 2025-02-28 08:46:31 +00:00
user32: Treat empty rects as 1x1 in MonitorFromRect.
This commit is contained in:
parent
fc185ccd9b
commit
2fef984ed5
@ -359,6 +359,13 @@ HMONITOR WINAPI MonitorFromRect( LPRECT rect, DWORD flags )
|
||||
info.primary = 0;
|
||||
info.nearest = 0;
|
||||
info.ret = 0;
|
||||
|
||||
if (IsRectEmpty(&info.rect))
|
||||
{
|
||||
info.rect.right = info.rect.left + 1;
|
||||
info.rect.bottom = info.rect.top + 1;
|
||||
}
|
||||
|
||||
if (!EnumDisplayMonitors( 0, NULL, monitor_enum, (LPARAM)&info )) return 0;
|
||||
if (!info.ret)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user