Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 15 of file testbounds.c.
References SDL_Rect::h, i, SDL_GetDisplayBounds, SDL_GetDisplayName, SDL_GetDisplayUsableBounds, SDL_GetError, SDL_GetNumVideoDisplays, SDL_Init, SDL_INIT_VIDEO, SDL_Log, SDL_Quit, SDL_Rect::w, SDL_Rect::x, and SDL_Rect::y.
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);
#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.