Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Switch
RetroArch
RetroArch
Commits
cd8bf003
Commit
cd8bf003
authored
Nov 23, 2018
by
Sunderland93
Browse files
Add toplevel configuration
parent
9d5cb529
Changes
1
Hide whitespace changes
Inline
Side-by-side
gfx/drivers_context/wayland_ctx.c
View file @
cd8bf003
...
...
@@ -569,7 +569,15 @@ static const struct xdg_surface_listener xdg_surface_listener = {
static
void
handle_toplevel_config
(
void
*
data
,
struct
xdg_toplevel
*
toplevel
,
int
width
,
int
height
,
struct
wl_array
*
states
)
{
// TODO
gfx_ctx_wayland_data_t
*
wl
=
(
gfx_ctx_wayland_data_t
*
)
data
;
wl
->
width
=
wl
->
buffer_scale
*
width
;
wl
->
height
=
wl
->
buffer_scale
*
height
;
RARCH_LOG
(
"[Wayland]: Surface configure: %u x %u.
\n
"
,
wl
->
width
,
wl
->
height
);
wl
->
configured
=
false
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment