mirror of
https://github.com/thunderbrewhq/thunderbrew
synced 2025-12-12 03:02:30 +00:00
feat(gx): partially handle size wm event in d3d backend
This commit is contained in:
parent
298590f52c
commit
9a15edb6e4
2 changed files with 19 additions and 1 deletions
|
|
@ -73,6 +73,7 @@ class CGxDevice {
|
|||
TSHashTable<CGxShader, HASHKEY_STRI> m_shaderList[GxShTargets_Last];
|
||||
int32_t m_context = 0;
|
||||
int32_t intF5C = 0;
|
||||
int32_t m_windowVisible = 0;
|
||||
int32_t intF64 = 0;
|
||||
CBoundingBox m_viewport;
|
||||
C44Matrix m_projection;
|
||||
|
|
|
|||
|
|
@ -408,7 +408,24 @@ int32_t CGxDeviceD3d::DeviceSetFormat(const CGxFormat& format) {
|
|||
}
|
||||
|
||||
void CGxDeviceD3d::DeviceWM(EGxWM wm, uintptr_t param1, uintptr_t param2) {
|
||||
// TODO
|
||||
switch (wm) {
|
||||
case GxWM_Size: {
|
||||
if (param2 == 1 || param2 == 2) {
|
||||
this->m_windowVisible = 0;
|
||||
} else {
|
||||
this->m_windowVisible = 1;
|
||||
|
||||
auto& windowRect = *reinterpret_cast<CRect*>(param1);
|
||||
this->DeviceSetDefWindow(windowRect);
|
||||
|
||||
if (this->m_d3dDevice && this->m_context) {
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void CGxDeviceD3d::Draw(CGxBatch* batch, int32_t indexed) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue