mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
commit
1123042f20
@ -266,12 +266,9 @@ static bool x11_display_server_set_resolution(void *data,
|
||||
XRRSetCrtcConfig(dpy, res,res->crtcs[i], CurrentTime,
|
||||
0, 0, None, RR_Rotate_0, NULL, 0);
|
||||
XSync(dpy, False);
|
||||
XRRSetScreenSize(dpy, window, width, height,
|
||||
(int) ((25.4 * width) / 96.0),
|
||||
(int) ((25.4 * height) / 96.0));
|
||||
XRRSetCrtcConfig(dpy, res, res->crtcs[i], CurrentTime,
|
||||
crtc->x, crtc->y, crtc->mode, crtc->rotation,
|
||||
crtc->outputs, crtc->noutput);
|
||||
crtc->outputs, crtc->noutput);
|
||||
XSync(dpy, False);
|
||||
|
||||
XRRFreeCrtcInfo(crtc);
|
||||
@ -302,15 +299,13 @@ static bool x11_display_server_set_resolution(void *data,
|
||||
XRRSetCrtcConfig(dpy, res,res->crtcs[monitor_index], CurrentTime,
|
||||
0, 0, None, RR_Rotate_0, NULL, 0);
|
||||
XSync(dpy, False);
|
||||
XRRSetScreenSize(dpy, window, width, height,
|
||||
(int) ((25.4 * width) / 96.0),
|
||||
(int) ((25.4 * height) / 96.0));
|
||||
XRRSetCrtcConfig(dpy, res, res->crtcs[monitor_index], CurrentTime,
|
||||
crtc->x, crtc->y, crtc->mode, crtc->rotation,
|
||||
crtc->outputs, crtc->noutput);
|
||||
XSync(dpy, False);
|
||||
|
||||
|
||||
|
||||
XRRFreeCrtcInfo(crtc);
|
||||
}
|
||||
XRRFreeOutputInfo(outputs);
|
||||
@ -573,10 +568,6 @@ static void x11_display_server_destroy(void *data)
|
||||
XRRSetCrtcConfig(dpy, res,res->crtcs[i],
|
||||
CurrentTime, 0, 0, None, RR_Rotate_0, NULL, 0);
|
||||
XSync(dpy, False);
|
||||
XRRSetScreenSize(dpy, window,
|
||||
crt_rrmode.width, crt_rrmode.height,
|
||||
(int) ((25.4 * crt_rrmode.width) / 96.0),
|
||||
(int) ((25.4 * crt_rrmode.height) / 96.0));
|
||||
XRRSetCrtcConfig(dpy, res, res->crtcs[i], CurrentTime,
|
||||
crtc->x, crtc->y, crtc->mode, crtc->rotation,
|
||||
crtc->outputs, crtc->noutput);
|
||||
@ -608,10 +599,6 @@ static void x11_display_server_destroy(void *data)
|
||||
res->crtcs[x11_monitor_index],
|
||||
CurrentTime, 0, 0, None, RR_Rotate_0, NULL, 0);
|
||||
XSync(dpy, False);
|
||||
XRRSetScreenSize(dpy, window,
|
||||
crt_rrmode.width, crt_rrmode.height,
|
||||
(int) ((25.4 * crt_rrmode.width) / 96.0),
|
||||
(int) ((25.4 * crt_rrmode.height) / 96.0));
|
||||
XRRSetCrtcConfig(dpy, res,
|
||||
res->crtcs[x11_monitor_index],
|
||||
CurrentTime, crtc->x, crtc->y,
|
||||
|
Loading…
x
Reference in New Issue
Block a user