mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-21 18:21:51 +00:00
Small cleanups
This commit is contained in:
parent
136a9db13f
commit
098e62067e
@ -134,7 +134,8 @@ void x11_move_window(Display *dpy, Window win, int x, int y,
|
||||
{
|
||||
XEvent xev = {0};
|
||||
|
||||
XA_NET_MOVERESIZE_WINDOW = XInternAtom(dpy, "_NET_MOVERESIZE_WINDOW", False);
|
||||
XA_NET_MOVERESIZE_WINDOW = XInternAtom(dpy,
|
||||
"_NET_MOVERESIZE_WINDOW", False);
|
||||
|
||||
xev.xclient.type = ClientMessage;
|
||||
xev.xclient.send_event = True;
|
||||
@ -170,12 +171,12 @@ static void x11_set_window_pid(Display *dpy, Window win)
|
||||
XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&pid, 1);
|
||||
|
||||
errno = 0;
|
||||
if((scret = sysconf(_SC_HOST_NAME_MAX)) == -1 && errno)
|
||||
if ((scret = sysconf(_SC_HOST_NAME_MAX)) == -1 && errno)
|
||||
return;
|
||||
if((hostname = (char*)malloc(scret + 1)) == NULL)
|
||||
if ((hostname = (char*)malloc(scret + 1)) == NULL)
|
||||
return;
|
||||
|
||||
if(gethostname(hostname, scret + 1) == -1)
|
||||
if (gethostname(hostname, scret + 1) == -1)
|
||||
RARCH_WARN("Failed to get hostname.\n");
|
||||
else
|
||||
{
|
||||
|
@ -1078,7 +1078,7 @@ static bool gfx_ctx_x_bind_api(void *data, enum gfx_ctx_api api,
|
||||
case GFX_CTX_OPENGL_ES_API:
|
||||
#ifdef HAVE_OPENGLES2
|
||||
{
|
||||
Display *dpy = XOpenDisplay(NULL);
|
||||
Display *dpy = XOpenDisplay(NULL);
|
||||
const char *exts = glXQueryExtensionsString(dpy, DefaultScreen(dpy));
|
||||
bool ret = exts && strstr(exts,
|
||||
"GLX_EXT_create_context_es2_profile");
|
||||
|
Loading…
x
Reference in New Issue
Block a user