mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Enum fixes, small reflection fixes
This commit is contained in:
parent
973b5e73cf
commit
dffde00a6a
11 changed files with 100 additions and 35 deletions
|
@ -132,9 +132,9 @@ WinBFWindow::WinBFWindow(BFWindow* parent, const StringImpl& title, int x, int y
|
|||
::SystemParametersInfo(SPI_GETWORKAREA, NULL, &desktopRect, NULL);
|
||||
|
||||
if (x + width >= desktopRect.right)
|
||||
x = BF_MAX((int)desktopRect.left, requestedX - width);
|
||||
x = BF_MAX((int)desktopRect.left, desktopRect.right - width);
|
||||
if (y + height >= desktopRect.bottom)
|
||||
y = BF_MAX((int)desktopRect.top, requestedY - height);
|
||||
y = BF_MAX((int)desktopRect.top, desktopRect.bottom - height);
|
||||
}
|
||||
|
||||
mFlags = windowFlags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue