Updated internal documentation comments.
2 Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>
4 This software is provided 'as-is', without any express or implied
5 warranty. In no event will the authors be held liable for any damages
6 arising from the use of this software.
8 Permission is granted to anyone to use this software for any purpose,
9 including commercial applications, and to alter it and redistribute it
13 #include "testnative.h"
15 #ifdef TEST_NATIVE_X11
17 static void *CreateWindowX11(int w, int h);
18 static void DestroyWindowX11(void *window);
20 NativeWindowFactory X11WindowFactory = {
29 CreateWindowX11(int w, int h)
33 dpy = XOpenDisplay(NULL);
36 XCreateSimpleWindow(dpy, DefaultRootWindow(dpy), 0, 0, w, h, 0, 0,
38 XMapRaised(dpy, window);
41 return (void *) window;
45 DestroyWindowX11(void *window)
48 XDestroyWindow(dpy, (Window) window);