mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(dispserv_x11.c) Buildfix
This commit is contained in:
parent
9cb8fb8de5
commit
9bd1046538
@ -235,7 +235,7 @@ static bool x11_display_server_set_resolution(void *data,
|
||||
XRRFreeScreenResources(resources);
|
||||
|
||||
if (!crt_exists)
|
||||
wMode = XRRCreateMode(dpy, window, &crt_rrmode);
|
||||
XRRCreateMode(dpy, window, &crt_rrmode);
|
||||
|
||||
resources = XRRGetScreenResourcesCurrent(dpy, window);
|
||||
|
||||
@ -637,7 +637,7 @@ static void x11_display_server_destroy(void *data)
|
||||
if (outputs->connection == RR_Connected)
|
||||
{
|
||||
snprintf(old_mode, sizeof(old_mode), "CRT%d", i);
|
||||
if (strcmp(resources->modes[m].name, old_mode) == 0)
|
||||
if (string_is_equal(resources->modes[m].name, old_mode))
|
||||
{
|
||||
swoldmode = &resources->modes[m];
|
||||
XRRDeleteOutputMode(dpy, res->outputs[j], swoldmode->id);
|
||||
|
Loading…
x
Reference in New Issue
Block a user