mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-04-18 11:02:44 +03:00
feat(gx): adjust window for desired client area in d3d backend
This commit is contained in:
parent
98d75ca2e3
commit
aecd79a57c
@ -917,6 +917,16 @@ bool CGxDeviceD3d::ICreateWindow(CGxFormat& format) {
|
|||||||
|
|
||||||
// TODO
|
// TODO
|
||||||
|
|
||||||
|
RECT clientArea = {
|
||||||
|
0, // left
|
||||||
|
0, // top
|
||||||
|
format.size.x, // right
|
||||||
|
format.size.y // bottom
|
||||||
|
};
|
||||||
|
AdjustWindowRectEx(&clientArea, dwStyle, false, 0);
|
||||||
|
|
||||||
|
// TODO
|
||||||
|
|
||||||
int32_t width = format.size.x ? format.size.x : CW_USEDEFAULT;
|
int32_t width = format.size.x ? format.size.x : CW_USEDEFAULT;
|
||||||
int32_t height = format.size.y ? format.size.y : CW_USEDEFAULT;
|
int32_t height = format.size.y ? format.size.y : CW_USEDEFAULT;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user