Commit graph

105 commits

Author SHA1 Message Date
Sam Lantinga
007680c438 Added SDL_VIDEO_FULLSCREEN_DISPLAY as a preferred synonym for SDL_VIDEO_FULLSCREEN_HEAD on X11.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404042
2009-10-10 15:06:04 +00:00
Sam Lantinga
42b81dd3ee Added patch note for revision 5005
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404019
2009-10-10 09:21:09 +00:00
Sam Lantinga
2fd226c25c Changed environment variable to match Debian patch 205_lock_keys.diff
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404016
2009-10-10 09:02:17 +00:00
Sam Lantinga
e154913136 Updated change log with recent checkins
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%404011
2009-10-10 08:11:36 +00:00
Sam Lantinga
0818c28108 SDL 1.2.14 is a recommended update.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403985
2009-10-07 08:03:32 +00:00
Sam Lantinga
8329a0a1dd Updated documentation with major changes for 1.2.14
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%403984
2009-10-07 08:00:20 +00:00
Sam Lantinga
580dd6f991 Added patch note for Sylvain's patch
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402735
2008-02-29 13:58:37 +00:00
Sam Lantinga
5ad5a0811a * 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
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402733
2008-02-29 13:55:44 +00:00
Sam Lantinga
46e4acae50 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
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402683
2007-12-29 21:31:26 +00:00
Sam Lantinga
61b0ff7d8e J. Snell fixed bug #482
Fixed arguments used with sdl-config in sdl.m4

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402680
2007-12-29 20:08:51 +00:00
Sam Lantinga
b8dac67496 Fixed bug #478
Take the min and max values into account.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402678
2007-12-29 19:44:02 +00:00
Sam Lantinga
0b021f7b23 Added patch note for fixing bug #503
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402676
2007-12-29 19:01:13 +00:00
Sam Lantinga
eacd91866c Updated patch notes for 1.2.13
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402671
2007-12-29 06:21:47 +00:00
Sam Lantinga
0b1d486568 Added patch note for bug #461
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402557
2007-07-19 08:12:45 +00:00
Sam Lantinga
adddf96af5 Added a patch note for the Mac OS X cursor bug
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402541
2007-07-15 19:00:22 +00:00
Ryan C. Gordon
f7f530f9e0 Added more release notes.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402483
2007-07-11 07:47:47 +00:00
Sam Lantinga
e9910211c8 Added patch note for file I/O speedup
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402460
2007-07-10 05:37:53 +00:00
Ryan C. Gordon
31d16a0542 Removed note about initializing mixing buffers.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402449
2007-07-09 00:26:21 +00:00
Sam Lantinga
bd653f8150 Fixed bug #437
Some X servers advertise the DGA extension don't support DGA1 anymore.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402445
2007-07-08 20:38:36 +00:00
Sam Lantinga
e2d89e3012 Reverted mousewheel support in 1.2, since it breaks binary compatibility.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402430
2007-07-06 13:39:03 +00:00
Sam Lantinga
79ce9cd629 Fixed bug #382
Added horizontal scrolling support: SDL_BUTTON_WHEELLEFT (6) and SDL_BUTTON_WHEELRIGHT (7)

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402427
2007-07-06 09:15:43 +00:00
Ryan C. Gordon
2e69a8f550 Added notes about audio callback behaviour.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402416
2007-07-05 02:53:40 +00:00
Sam Lantinga
17349bcd15 Added some missing patch notes - Ryan, feel free to add them for your commits
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402400
2007-07-03 09:22:57 +00:00
Sam Lantinga
6a44c15be5 Added patch note for fixing bug 335
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402399
2007-07-03 09:16:14 +00:00
Ryan C. Gordon
d95716b5de Updated "What's New" docs.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402382
2007-06-26 20:04:15 +00:00
Sam Lantinga
9d68aabeb7 Added initial support for Nintendo DS, based on the work by Troy Davis (GPF)
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402376
2007-06-25 00:50:20 +00:00
Ryan C. Gordon
10ab421d01 Added S60 port.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402375
2007-06-24 18:26:35 +00:00
Ryan C. Gordon
f9e2e9d635 Added support for WM_XBUTTON to the windib driver, to support more mouse
buttons.

   Fixes Bugzilla #311.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402363
2007-06-16 05:10:47 +00:00
Ryan C. Gordon
52001505d8 Removed EPOC port...it's being replaced by an updated Symbian port with the
original author's blessing.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402360
2007-06-15 15:42:15 +00:00
Sam Lantinga
65296278a3 Added patch note for subversion revision 3076
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402357
2007-06-15 11:43:14 +00:00
Sam Lantinga
43816f4915 Added docs for revision 3073 - Ryan, feel free to do this yourself, if you want.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402352
2007-06-15 06:49:14 +00:00
Sam Lantinga
22b2aca10e Updated docs with bug fixes in subversion.
--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402348
2007-06-15 05:21:33 +00:00
Sam Lantinga
650269aca5 Added 1.2.11 patch notes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401914
2006-06-27 04:33:31 +00:00
Sam Lantinga
3470d1df70 Updated docs for SDL 1.2.10 release
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401801
2006-05-16 08:00:25 +00:00
Sam Lantinga
447103bbe0 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401125
2005-08-21 08:02:23 +00:00
Sam Lantinga
1f51aedca2 Added change log notes
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401015
2004-12-15 01:02:20 +00:00
Sam Lantinga
493c4dacec *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40841
2004-02-17 18:21:46 +00:00
Sam Lantinga
0160ec6888 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40839
2004-02-17 18:01:39 +00:00
Sam Lantinga
4f229b8729 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40706
2003-08-30 20:55:38 +00:00
Sam Lantinga
ef58fed6a9 Open ALSA devices in non-blocking mode (thanks Aleksey!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40549
2002-11-17 20:02:26 +00:00
Sam Lantinga
87040b3a85 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40543
2002-11-17 17:56:14 +00:00
Sam Lantinga
bb1c6662b5 Greatly improved X11 DGA video speed (thanks Cezary!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40541
2002-11-09 06:20:46 +00:00
Sam Lantinga
994f095e2e Added MMX audio mixing code for gcc (thanks Stephane!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40540
2002-11-09 06:13:28 +00:00
Sam Lantinga
7af0922b86 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40538
2002-11-09 05:51:13 +00:00
Sam Lantinga
e47641dfce Added Visual C++ 7 (.NET) projects (thanks James!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40522
2002-10-08 15:43:40 +00:00
Sam Lantinga
7200c21d78 Added an environment variable SDL_HAS3BUTTONMOUSE for Quartz
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40512
2002-10-05 22:22:42 +00:00
Sam Lantinga
3ee2de057f Added initial support for Dreamcast (thanks HERO!)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40510
2002-10-05 16:50:56 +00:00
Sam Lantinga
dd508169ee *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40467
2002-08-24 16:17:05 +00:00
Sam Lantinga
f786844714 *** empty log message ***
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40456
2002-08-20 00:27:37 +00:00
Sam Lantinga
aa3ff02a85 Added SDL_BUTTON_WHEELUP (4) and SDL_BUTTON_WHEELDOWN (5)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40452
2002-08-19 18:09:44 +00:00