mirror of
https://github.com/libretro/RetroArch
synced 2025-02-28 22:13:51 +00:00
Fix for low resoltion crash
256x240 resolutions and lower are now working
This commit is contained in:
parent
382044b5bf
commit
17809688a6
@ -269,9 +269,6 @@ static bool x11_display_server_set_resolution(void *data,
|
||||
XRRSetCrtcConfig(dpy, res, res->crtcs[i], CurrentTime,
|
||||
crtc->x, crtc->y, crtc->mode, crtc->rotation,
|
||||
crtc->outputs, crtc->noutput);
|
||||
XRRSetScreenSize(dpy, window, width, height,
|
||||
(int) ((25.4 * width) / 96.0),
|
||||
(int) ((25.4 * height) / 96.0));
|
||||
XSync(dpy, False);
|
||||
|
||||
XRRFreeCrtcInfo(crtc);
|
||||
@ -305,9 +302,6 @@ static bool x11_display_server_set_resolution(void *data,
|
||||
XRRSetCrtcConfig(dpy, res, res->crtcs[monitor_index], CurrentTime,
|
||||
crtc->x, crtc->y, crtc->mode, crtc->rotation,
|
||||
crtc->outputs, crtc->noutput);
|
||||
XRRSetScreenSize(dpy, window, width, height,
|
||||
(int) ((25.4 * width) / 96.0),
|
||||
(int) ((25.4 * height) / 96.0));
|
||||
XSync(dpy, False);
|
||||
|
||||
|
||||
@ -609,15 +603,15 @@ 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,
|
||||
crtc->mode, crtc->rotation,
|
||||
crtc->outputs, crtc->noutput);
|
||||
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));
|
||||
XSync(dpy, False);
|
||||
|
||||
XRRFreeCrtcInfo(crtc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user