1
0
Fork 0
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:
Brian Fiete 2019-11-25 06:47:41 -08:00
parent 973b5e73cf
commit dffde00a6a
11 changed files with 100 additions and 35 deletions

View file

@ -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;