Commit Graph

104 Commits

Author SHA1 Message Date
Sam Lantinga
f196b8d1c2 Added patch note for revision 5005
--HG--
branch : SDL-1.2
2009-10-10 09:21:09 +00:00
Sam Lantinga
00f8c1e08c Changed environment variable to match Debian patch 205_lock_keys.diff
--HG--
branch : SDL-1.2
2009-10-10 09:02:17 +00:00
Sam Lantinga
bd32e944cb Updated change log with recent checkins
--HG--
branch : SDL-1.2
2009-10-10 08:11:36 +00:00
Sam Lantinga
31867aa56e SDL 1.2.14 is a recommended update.
--HG--
branch : SDL-1.2
2009-10-07 08:03:32 +00:00
Sam Lantinga
5fedd0c67c Updated documentation with major changes for 1.2.14
--HG--
branch : SDL-1.2
2009-10-07 08:00:20 +00:00
Sam Lantinga
3f1d5190af Added patch note for Sylvain's patch
--HG--
branch : SDL-1.2
2008-02-29 13:58:37 +00:00
Sam Lantinga
ba9c21cfb1 * Added configure option --enable-screensaver, to allow enabling the screensaver by default.
* Use XResetScreenSaver() instead of disabling screensaver entirely.

Full discussion summary from Erik on the SDL mailing list:

Current behaviour
=================

SDL changes the user's display power management settings without
permission from the user and without telling the user.

The interface that it uses to do so is DPMSDisable/DPMSEnable, which
should only ever be used by configuration utilities like KControl, never
by normal application programs, let alone by the libraries that they
use. Using an interface that is not at all intended for what SDL tries
to achieve means that it will not work as it should. Firstly, the power
management is completely disabled during the whole lifetime of the SDL
program, not only when it should be. Secondly, it makes SDL
non-reentrant, meaning that things will break when multiple SDL programs
are clients of the same X server simultaneously. Thirdly, no cleanup
mechanism ensures that the setting is restored if the client does not do
that (for example if it crashes).

In addition to that, this interface is broken on xorg,
[http://bugs.freedesktop.org/show_bug.cgi?id=13962], so what SDL tries
to do does not work at all on that implementation of the X Window
System. (The reason that the DPMSEnable works in KControl is that it
calls DPMSSetTimeout immediately after,
[http://websvn.kde.org/tags/KDE/3.5.9/kdebase/kcontrol/energy/energy.cpp?annotate=774532#l343]).


The problems that the current behaviour causes
==============================================
1. Information leak. When the user is away, someone might see what the
user has on the display when the user counts on the screensaver
preventing this. This does not even require physical access to the
workstation, it is enough to see it from a distance.
2. Draining battery. An SDL program that runs on a laptop will quickly
drain the battery while the user is away. The system will soon shut down
and require recharging before being usable again, while it should in
fact have consumed very little energy if the user's settings would have
been obeyed.
3. Wasting energy. Even if battery issues are not considered, energy as
such is wasted.
4. Display wear. The display may be worn out.


The problems that the current behaviour tries to solve
======================================================

1. Preventing screensaver while playing movies.
   Many SDL applications are media players. They have reasons to prevent
screensavers from being activated while a movie is being played. When a
user clicks on the play button it can be interpreted as saying "play
this movie, but do not turn off the display while playing it, because I
will watch it even though I do not interact with the system".

2. Preventing screensaver when some input bypasses X.
   Sometimes SDL uses input from another source than the X server, so
that the X server is bypassed. This obviously breaks the screensaver
handling. SDL tries to work around that.

3. Preventing screensaver when all input bypasses X.
   There is something called Direct Graphics Access mode, where a
program takes control of both the display and the input devices from the
X server. This obviously means that the X server can not handle the
screensaver alone, since screensaver handling depends on input handling.
SDL does not do what it should to help the X server to handle the
screensaver. Nor does SDL take care of screeensaver handling itself. SDL
simply disables the screensaver completely.


How the problems should be solved
=================================

The correct way for an application program to prevent the screensaver
under X is to call XResetScreenSaver. This was recently discovered and
implemented by the mplayer developers,
[http://svn.mplayerhq.hu/mplayer?view=rev&revision=25637]. SDL needs to
wrap this in an API call (SDL_ResetScreenSaver) and implement it for the
other video targets (if they do not have a corresponding call, SDL
should do what it takes on that particular target, for example sending
fake key events).

1. When a movie is played, the player should reset the screensaver when
the animation is advanced to a new frame. The same applies to anything
similar, like slideshows.

2. When the X server is handling input, it must handle all input
(keyboards, mice, gamepads, ...). This is necessary, not only to be able
to handle the screensaver, but also so that it can send the events to
the correct (the currently active) client. If there is an input device
that the X server can not handle for some reason (such as lack of Plug
and Play capability), the program that handles the device as a
workaround must simulate what would happen if the X server would have
handled the device, by calling XResetScreenSaver when input is received
from the device.

3. When the X server is not handling the input, it depends on the
program that does to call XResetScreenSaver whenever an input event
occurs. Alternatively the program must handle the screensaver countdown
internally and call XActivateScreenSaver.

--HG--
branch : SDL-1.2
2008-02-29 13:55:44 +00:00
Sam Lantinga
fa61958343 Guillaume Borios fixed bug #508
When unicode translation is ON, pressing the escape key raise an NSBeep()
because the NSTextView interprets the key as a special command (in that case
impossible to interpret)... The NSTextView instance should replaced by
something subclassed so that doCommandBySelector: does nothing.

Example code :

@interface SDLTranslatorResponder : NSTextView
{
}
- (void) doCommandBySelector:(SEL)myselector;
@end

@implementation SDLTranslatorResponder
- (void) doCommandBySelector:(SEL) myselector {}
@end

--HG--
branch : SDL-1.2
2007-12-29 21:31:26 +00:00
Sam Lantinga
2ea5504ad8 J. Snell fixed bug #482
Fixed arguments used with sdl-config in sdl.m4

--HG--
branch : SDL-1.2
2007-12-29 20:08:51 +00:00
Sam Lantinga
e1bb13d727 Fixed bug #478
Take the min and max values into account.

--HG--
branch : SDL-1.2
2007-12-29 19:44:02 +00:00
Sam Lantinga
138e23eaa6 Added patch note for fixing bug #503
--HG--
branch : SDL-1.2
2007-12-29 19:01:13 +00:00
Sam Lantinga
62cdfa64d3 Updated patch notes for 1.2.13
--HG--
branch : SDL-1.2
2007-12-29 06:21:47 +00:00
Sam Lantinga
d05d4532f7 Added patch note for bug #461
--HG--
branch : SDL-1.2
2007-07-19 08:12:45 +00:00
Sam Lantinga
f7a0de097b Added a patch note for the Mac OS X cursor bug
--HG--
branch : SDL-1.2
2007-07-15 19:00:22 +00:00
Ryan C. Gordon
e67530ab71 Added more release notes.
--HG--
branch : SDL-1.2
2007-07-11 07:47:47 +00:00
Sam Lantinga
c0dd25a74e Added patch note for file I/O speedup
--HG--
branch : SDL-1.2
2007-07-10 05:37:53 +00:00
Ryan C. Gordon
671558a717 Removed note about initializing mixing buffers.
--HG--
branch : SDL-1.2
2007-07-09 00:26:21 +00:00
Sam Lantinga
5fee52b523 Fixed bug #437
Some X servers advertise the DGA extension don't support DGA1 anymore.

--HG--
branch : SDL-1.2
2007-07-08 20:38:36 +00:00
Sam Lantinga
cc9abb85bd Reverted mousewheel support in 1.2, since it breaks binary compatibility.
--HG--
branch : SDL-1.2
2007-07-06 13:39:03 +00:00
Sam Lantinga
9c3a477063 Fixed bug #382
Added horizontal scrolling support: SDL_BUTTON_WHEELLEFT (6) and SDL_BUTTON_WHEELRIGHT (7)

--HG--
branch : SDL-1.2
2007-07-06 09:15:43 +00:00
Ryan C. Gordon
f6bfedad78 Added notes about audio callback behaviour.
--HG--
branch : SDL-1.2
2007-07-05 02:53:40 +00:00
Sam Lantinga
d3c0a3c96e Added some missing patch notes - Ryan, feel free to add them for your commits
--HG--
branch : SDL-1.2
2007-07-03 09:22:57 +00:00
Sam Lantinga
d18dec8293 Added patch note for fixing bug 335
--HG--
branch : SDL-1.2
2007-07-03 09:16:14 +00:00
Ryan C. Gordon
8d05f5cf7e Updated "What's New" docs.
--HG--
branch : SDL-1.2
2007-06-26 20:04:15 +00:00
Sam Lantinga
ddcda50469 Added initial support for Nintendo DS, based on the work by Troy Davis (GPF)
--HG--
branch : SDL-1.2
2007-06-25 00:50:20 +00:00
Ryan C. Gordon
c66b807d4e Added S60 port.
--HG--
branch : SDL-1.2
2007-06-24 18:26:35 +00:00
Ryan C. Gordon
2d96450d1f Added support for WM_XBUTTON to the windib driver, to support more mouse
buttons.

   Fixes Bugzilla #311.

--HG--
branch : SDL-1.2
2007-06-16 05:10:47 +00:00
Ryan C. Gordon
de5cb8d0ad Removed EPOC port...it's being replaced by an updated Symbian port with the
original author's blessing.

--HG--
branch : SDL-1.2
2007-06-15 15:42:15 +00:00
Sam Lantinga
6d5359a85e Added patch note for subversion revision 3076
--HG--
branch : SDL-1.2
2007-06-15 11:43:14 +00:00
Sam Lantinga
6fe7ece68f Added docs for revision 3073 - Ryan, feel free to do this yourself, if you want.
--HG--
branch : SDL-1.2
2007-06-15 06:49:14 +00:00
Sam Lantinga
6310de0733 Updated docs with bug fixes in subversion.
--HG--
branch : SDL-1.2
2007-06-15 05:21:33 +00:00
Sam Lantinga
119848d88c Added 1.2.11 patch notes 2006-06-27 04:33:31 +00:00
Sam Lantinga
1e3a0186eb Updated docs for SDL 1.2.10 release 2006-05-16 08:00:25 +00:00
Sam Lantinga
8a33986f93 *** empty log message *** 2005-08-21 08:02:23 +00:00
Sam Lantinga
ac14247b40 Added change log notes 2004-12-15 01:02:20 +00:00
Sam Lantinga
215d2d8073 *** empty log message *** 2004-02-17 18:21:46 +00:00
Sam Lantinga
4eda6a12bb *** empty log message *** 2004-02-17 18:01:39 +00:00
Sam Lantinga
95a1dcad2f *** empty log message *** 2003-08-30 20:55:38 +00:00
Sam Lantinga
f57b251bc5 Open ALSA devices in non-blocking mode (thanks Aleksey!) 2002-11-17 20:02:26 +00:00
Sam Lantinga
f5e10fed3b *** empty log message *** 2002-11-17 17:56:14 +00:00
Sam Lantinga
06ea1caf17 Greatly improved X11 DGA video speed (thanks Cezary!) 2002-11-09 06:20:46 +00:00
Sam Lantinga
6b36d7ea48 Added MMX audio mixing code for gcc (thanks Stephane!) 2002-11-09 06:13:28 +00:00
Sam Lantinga
d349fa9828 *** empty log message *** 2002-11-09 05:51:13 +00:00
Sam Lantinga
25750d0f2e Added Visual C++ 7 (.NET) projects (thanks James!) 2002-10-08 15:43:40 +00:00
Sam Lantinga
7421c1f7d9 Added an environment variable SDL_HAS3BUTTONMOUSE for Quartz 2002-10-05 22:22:42 +00:00
Sam Lantinga
fd756e4973 Added initial support for Dreamcast (thanks HERO!) 2002-10-05 16:50:56 +00:00
Sam Lantinga
7229af8ff4 *** empty log message *** 2002-08-24 16:17:05 +00:00
Sam Lantinga
55fe3c0cae *** empty log message *** 2002-08-20 00:27:37 +00:00
Sam Lantinga
51ae701fe9 Added SDL_BUTTON_WHEELUP (4) and SDL_BUTTON_WHEELDOWN (5) 2002-08-19 18:09:44 +00:00
Sam Lantinga
7fabbe8198 Added SDL_GL_STEREO for stereoscopic OpenGL contexts 2002-08-19 17:58:08 +00:00