15 int main(
int argc,
char **argv)
25 for (i = 0; i < total; i++) {
26 SDL_Rect bounds = { -1,-1,-1,-1 }, usable = { -1,-1,-1,-1 };
29 SDL_Log(
"Display #%d ('%s'): bounds={(%d,%d),%dx%d}, usable={(%d,%d),%dx%d}",
31 bounds.
x, bounds.
y, bounds.
w, bounds.
h,
32 usable.x, usable.y, usable.w, usable.h);
int main(int argc, char **argv)
#define SDL_GetDisplayName
#define SDL_GetDisplayUsableBounds
#define SDL_GetNumVideoDisplays
#define SDL_GetDisplayBounds
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
A rectangle, with the origin at the upper left.