Added window resize for XCB (Fixes #105)
This commit is contained in:
parent
23f3eb0170
commit
f44afda9ab
1 changed files with 14 additions and 0 deletions
|
|
@ -1183,6 +1183,20 @@ void VulkanExampleBase::handleEvent(const xcb_generic_event_t *event)
|
||||||
case XCB_DESTROY_NOTIFY:
|
case XCB_DESTROY_NOTIFY:
|
||||||
quit = true;
|
quit = true;
|
||||||
break;
|
break;
|
||||||
|
case XCB_CONFIGURE_NOTIFY:
|
||||||
|
{
|
||||||
|
const xcb_configure_notify_event_t *cfgEvent = (const xcb_configure_notify_event_t *)event;
|
||||||
|
if ((prepared) && ((cfgEvent->width != width) || (cfgEvent->height != height)))
|
||||||
|
{
|
||||||
|
destWidth = cfgEvent->width;
|
||||||
|
destHeight = cfgEvent->height;
|
||||||
|
if ((destWidth > 0) && (destHeight > 0))
|
||||||
|
{
|
||||||
|
windowResize();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue