Mercurial > sdl-ios-xcode
view src/Makefile.am @ 1295:c3e36ac8a94c
Date: Sun, 6 Mar 2005 17:06:20 +0100
From: Per Inge Mathisen
Subject: [SDL] Fullscreen refresh on win32
Windows has a terrible default for fullscreen 3D apps of 60mhz refresh
rate. This can be fixed by the user by going into his driver's
control panel and forcing the refresh rate higher. However, this not a
very user friendly way about it, and in any case SDL contains no code
that could figure out this that condition has afflicted the user.
So the question is, could SDL fix this for the user? It is possible
under Windows to request a higher refresh rate. The danger is of
course that if the user has an old monitor, and you request a too high
refresh rate, the monitor could be damaged. However, I believe there
might be a way around that: Check before switching what refresh rate
the user's desktop runs in, and if our fullscreen dimensions are equal
or less than those of the desktop, use the higher refresh rate of 60
and the desktop rate.
Since most users run their desktops in the same or higher resolution
something sane, this should fix this problem for most users.
Thoughts?
An alternative is to add an SDL_GL_GetAttribute(SDL_GL_REFRESH_RATE)
option so that programs can bitch at their users at their own
convenience.
- Per
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 30 Jan 2006 06:56:10 +0000 |
parents | e70f80e98f60 |
children | 450721ad5436 |
line wrap: on
line source
## Makefile.am for the main SDL library # These are the subdirectories that are always built CORE_SUBDIRS = \ main # These are the subdirectories which may be built EXTRA_SUBDIRS = \ audio video events joystick cdrom thread timer endian file cpuinfo hermes # These are the subdirectories which will be built now SUBDIRS = $(CORE_SUBDIRS) @SDL_EXTRADIRS@ # These are the subdirectories which will be distributed with "make dist" DIST_SUBDIRS = $(CORE_SUBDIRS) $(EXTRA_SUBDIRS) # The SDL library target lib_LTLIBRARIES = libSDL.la libSDL_la_SOURCES = $(GENERAL_SRCS) libSDL_la_LDFLAGS = \ -no-undefined \ -release $(LT_RELEASE) \ -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) libSDL_la_LIBADD = \ main/libarch.la \ @SDL_EXTRALIBS@ \ @SYSTEM_LIBS@ libSDL_la_DEPENDENCIES = \ main/libarch.la \ @SDL_EXTRALIBS@ # The SDL library sources GENERAL_SRCS = \ SDL.c \ SDL_error.c \ SDL_error_c.h \ SDL_fatal.c \ SDL_fatal.h \ SDL_getenv.c \ SDL_loadso.c