mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
Move decarations to the start of function
This commit is contained in:
parent
3f5eb55405
commit
54a07eaa60
@ -54,6 +54,7 @@ static void *xshm_gfx_init(const video_info_t *video,
|
|||||||
{
|
{
|
||||||
xshm_t* xshm = (xshm_t*)malloc(sizeof(xshm_t));
|
xshm_t* xshm = (xshm_t*)malloc(sizeof(xshm_t));
|
||||||
Window parent;
|
Window parent;
|
||||||
|
XSetWindowAttributes attributes;
|
||||||
|
|
||||||
XInitThreads();
|
XInitThreads();
|
||||||
|
|
||||||
@ -72,7 +73,6 @@ static void *xshm_gfx_init(const video_info_t *video,
|
|||||||
#else
|
#else
|
||||||
parent = video->parent;
|
parent = video->parent;
|
||||||
#endif
|
#endif
|
||||||
XSetWindowAttributes attributes;
|
|
||||||
attributes.border_pixel=0;
|
attributes.border_pixel=0;
|
||||||
g_x11_win = XCreateWindow(g_x11_dpy, parent,
|
g_x11_win = XCreateWindow(g_x11_dpy, parent,
|
||||||
0, 0, video->width, video->height,
|
0, 0, video->width, video->height,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user