Go to the documentation of this file.
26 SDL_Log(
"%s: fmt=%s w=%d h=%d refresh=%d\n",
32 main(
int argc,
char *argv[])
35 int num_displays,
dpy;
49 SDL_Log(
"See %d displays.\n", num_displays);
51 for (
dpy = 0;
dpy < num_displays;
dpy++) {
54 float ddpi, hdpi, vdpi;
58 SDL_Log(
"%d: \"%s\" (%dx%d, (%d, %d)), %d modes.\n",
dpy,
SDL_GetDisplayName(
dpy),
rect.
w,
rect.
h,
rect.
x,
rect.
y, num_modes);
63 SDL_Log(
" DPI: ddpi=%f; hdpi=%f; vdpi=%f\n", ddpi, hdpi, vdpi);
78 for (
m = 0;
m < num_modes;
m++) {
#define SDL_GetPixelFormatName
@ SDL_LOG_CATEGORY_APPLICATION
#define SDL_GetDisplayMode
#define SDL_GetDisplayName
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display dpy)
#define SDL_GetDesktopDisplayMode
#define SDL_GetNumVideoDisplays
The structure that defines a display mode.
#define SDL_GetDisplayBounds
#define SDL_GetCurrentVideoDriver
#define SDL_LogSetPriority
A rectangle, with the origin at the upper left (integer).
static void print_mode(const char *prefix, const SDL_DisplayMode *mode)
#define SDL_GetCurrentDisplayMode
#define SDL_GetDisplayDPI
#define SDL_GetNumDisplayModes
int main(int argc, char *argv[])