Add proper resize support on Linux
This commit is contained in:
parent
c37a8471c9
commit
0887fbda28
1 changed files with 3 additions and 0 deletions
|
@ -323,6 +323,9 @@ int main(int argc, char* argv[]) {
|
||||||
{
|
{
|
||||||
const xcb_configure_notify_event_t *cfgEvent = (const xcb_configure_notify_event_t *)event;
|
const xcb_configure_notify_event_t *cfgEvent = (const xcb_configure_notify_event_t *)event;
|
||||||
|
|
||||||
|
window_width = cfgEvent->width;
|
||||||
|
window_height = cfgEvent->height;
|
||||||
|
|
||||||
engine->resize(0, {cfgEvent->width, cfgEvent->height});
|
engine->resize(0, {cfgEvent->width, cfgEvent->height});
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Reference in a new issue