summaryrefslogtreecommitdiff
path: root/test/testime.c
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2011-02-10 12:14:37 -0800
committerSam Lantinga <slouken@libsdl.org>2011-02-10 12:14:37 -0800
commite9689c29d5d704a82591fadc9f5b9a30c7e389da (patch)
tree9e772c5c1f2b4a6674a25120b6488440016497d0 /test/testime.c
parente0f869b69814d7c1a2f386056e0c277c00ef9afc (diff)
Be explicit about what display you're querying. The default display is 0.
Diffstat (limited to 'test/testime.c')
-rw-r--r--test/testime.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/testime.c b/test/testime.c
index bc25f4ab..a8d3cab9 100644
--- a/test/testime.c
+++ b/test/testime.c
@@ -122,12 +122,9 @@ void InitVideo(int argc, char *argv[])
if (fullscreen)
{
- SDL_DisplayMode mode;
- SDL_GetDesktopDisplayMode(&mode);
-
- width = mode.w;
- height = mode.h;
- fprintf(stderr, "%dx%d\n", width, height);
+ /* Use the desktop mode */
+ width = 0;
+ height = 0;
flags |= SDL_FULLSCREEN;
}
@@ -375,3 +372,5 @@ int main(int argc, char *argv[])
CleanupVideo();
return 0;
}
+
+/* vi: set ts=4 sw=4 expandtab: */