projects
/
platform
/
upstream
/
Vulkan-Tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2f061d
)
demos: Fix window resize on Linux
author
Damien Leone
<dleone@nvidia.com>
Tue, 26 Jan 2016 22:34:12 +0000
(14:34 -0800)
committer
Jon Ashburn
<jon@lunarg.com>
Thu, 4 Feb 2016 18:24:36 +0000
(11:24 -0700)
demos/cube.c
patch
|
blob
|
history
demos/tri.c
patch
|
blob
|
history
diff --git
a/demos/cube.c
b/demos/cube.c
index
d611f1e
..
f9b2cfe
100644
(file)
--- a/
demos/cube.c
+++ b/
demos/cube.c
@@
-2011,6
+2011,8
@@
static void demo_handle_event(struct demo *demo,
const xcb_configure_notify_event_t *cfg =
(const xcb_configure_notify_event_t *)event;
if ((demo->width != cfg->width) || (demo->height != cfg->height)) {
+ demo->width = cfg->width;
+ demo->height = cfg->height;
demo_resize(demo);
}
} break;
diff --git
a/demos/tri.c
b/demos/tri.c
index
fa19b4e
..
a97b8ee
100644
(file)
--- a/
demos/tri.c
+++ b/
demos/tri.c
@@
-1610,6
+1610,8
@@
static void demo_handle_event(struct demo *demo,
const xcb_configure_notify_event_t *cfg =
(const xcb_configure_notify_event_t *)event;
if ((demo->width != cfg->width) || (demo->height != cfg->height)) {
+ demo->width = cfg->width;
+ demo->height = cfg->height;
demo_resize(demo);
}
} break;