Commit Graph

291 Commits

Author SHA1 Message Date
Sam Lantinga
313fe0b5b4 We don't need dlvsym() for ALSA anymore, yay!
--HG--
branch : SDL-1.2
2009-10-13 04:23:34 +00:00
Sam Lantinga
5b40072732 Adapted from 215_kfreebsd_gnu.diff
--HG--
branch : SDL-1.2
2009-10-10 09:38:02 +00:00
Sam Lantinga
2aa5bf5f41 Made typedef for SDL_bool the same as the other typedefs.
If this causes problems on any compiler, please report a bug to
http://bugzilla.libsdl.org/
and include the platform and version of compiler you're using.

--HG--
branch : SDL-1.2
2009-10-10 09:22:11 +00:00
Sam Lantinga
2158b7ad24 Debian patch: 020_libcaca_new_api.diff
--HG--
branch : SDL-1.2
2009-10-10 08:46:06 +00:00
Sam Lantinga
3d5fcac452 Ozkan Sezer 2009-04-01 23:17:13 PDT
This change should be applied to the 1.2 branch, too, because the svn version
SDL_net requires it.

--HG--
branch : SDL-1.2
2009-10-08 07:45:55 +00:00
Sam Lantinga
f82899f49e Added cast macros so SDL_net will compile with SDL 1.2
--HG--
branch : SDL-1.2
2009-09-22 04:35:46 +00:00
Sam Lantinga
209fcdd166 Added missing newline
--HG--
branch : SDL-1.2
2009-09-22 02:37:30 +00:00
Sam Lantinga
be0b0aaba8 Whoops, need both the header and the library!
--HG--
branch : SDL-1.2
2009-09-21 11:30:54 +00:00
Sam Lantinga
ddf31d93e9 Fixed bug #714
fuzzyTew@gmail.com      2009-03-14 15:18:45 PDT

Created an attachment (id=305) [details]
patch to change HAVE_ICONV to HAVE_ICONV_H

There are two separate iconv checks in configure -- one for the header file and
one for the library.  include/SDL_stdinc.h uses the library define to see
whether or not it should reference the types defined in the header, which
naturally breaks if the library exists and the header does not.

--HG--
branch : SDL-1.2
2009-09-21 11:04:32 +00:00
Sam Lantinga
3eb472ff51 Fixed bug #706
Ken Bull      2009-02-25 13:22:02 PST

Adds Doxygen support for all headers (except config and boilerplate headers) in
the include folder for SDL-1.2 revision 4446.

While in general SDL is quite thoroughly commented, none of these comments are
correctly formatted for Doxygen and are generally inconsistent in their
formatting.

--HG--
branch : SDL-1.2
2009-09-21 09:38:10 +00:00
Sam Lantinga
b66c6604e2 Oh yeah, we have GLX support too.
--HG--
branch : SDL-1.2
2009-09-21 08:58:51 +00:00
Sam Lantinga
e29d873e16 Fixed bug #577
Pierre Phaneuf      2008-05-01 10:29:16 PDT

SDL_VIDEO_DRIVER_X11 is not defined in SDL_config_macosx.h

There's a number of SDL_VIDEO_DRIVER_xxx defined in SDL_config_macosx.h, but
not that one, even though it is actually present.

--HG--
branch : SDL-1.2
2009-09-21 08:39:52 +00:00
Sam Lantinga
c3a2a2984c Updated the version to 1.2.14 for the next release.
--HG--
branch : SDL-1.2
2009-09-21 07:28:03 +00:00
Sam Lantinga
ff212ec939 The sound manager code is outdated and should only be used on Mac OS 9 now.
--HG--
branch : SDL-1.2
2009-09-21 07:03:29 +00:00
Ryan C. Gordon
75a2a1b62b GCC 3.03 support on OS/2.
Fixes Bugzilla #588.

--HG--
branch : SDL-1.2
2009-09-14 00:08:12 +00:00
Ryan C. Gordon
324f86dafb Made NAS target dynamic, so you can safely include it in shipping binaries.
--HG--
branch : SDL-1.2
2009-09-13 22:19:56 +00:00
Sam Lantinga
01164a36dc Fixed bug #746
Fixed freeze when trying to memset with 0 length

--HG--
branch : SDL-1.2
2009-08-07 10:20:40 +00:00
Sam Lantinga
89c67ab855 Fixed bug #421
Comment #3 From  esigra@gmail.com   2008-04-09 11:46:46   (-) [reply] -------

This bug also needs to be fixed for SDL_GetRGB and SDL_GetRGBA (those should
not change the format of the surface either). Until this is fixed, I still need
to const_cast the format parameter in calls to those functions.

--HG--
branch : SDL-1.2
2009-04-13 09:03:35 +00:00
Sam Lantinga
b5ad42362f Hello.
This patch provides basic support for video on the Sony PS3
Linux framebuffer. Scaling, format-conversion, and drawing is
done from the SPEs, so there is little performance impact to
PPE applications. This is by no means production quality code,
but it is a very good start and a good example of how to use the
PS3's hardware capabilities to accelerate video playback on
the box.

The driver has been verified to work with ffplay, mplayer and xine.
This piece of software has been developed at the IBM R&D Lab
in Boeblingen, Germany and is now returned to the community.

Enjoy !

Signed-off-by: D.Herrendoerfer < d.herrendoerfer [at] de [dot] ibm [dot] com >

--HG--
branch : SDL-1.2
2009-04-02 04:06:55 +00:00
Sam Lantinga
fba839639d Date: Fri, 6 Mar 2009 12:41:17 -0800
From: scott mc
Subject: Re: [SDL] patch for building on haiku

Ok. I've combined the various Haiku patches for the SDL-1.2 branch
into one .diff file

--HG--
branch : SDL-1.2
2009-03-17 03:58:53 +00:00
Ryan C. Gordon
22df3d3a00 Corrected documentation for SDL_rwops::read()
--HG--
branch : SDL-1.2
2009-01-30 01:40:44 +00:00
Sam Lantinga
2bdc5af575 Updated copyright date
--HG--
branch : SDL-1.2
2008-12-08 00:25:42 +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
Ryan C. Gordon
6f0c9da0cd Date: Sat, 2 Feb 2008 22:08:05 +0100
From: Marcus von Appen
To: sdl@lists.libsdl.org
Subject: [SDL] [Patch] SDL-1.2 SDL_revcpy() asm patch for the cld flag

Hi,

as reported through the FreeBSD bug tracking system in SDL 1.2.13 (and
in the 1.2 branch, if I see that correctly) the SDL_revcpy() macro sets
the direction flag (std), but does not clear it afterwards (cld), which
is wrong according to the GCC and SYS V specs.  This can cause some
weird side effects, which in turn can lead to memory corruption.

You can read the full report with a detailed description and test
program at http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/120052

Attached is the submitted patch, which fixes the issue.

Regards
Marcus

--HG--
branch : SDL-1.2
2008-02-04 17:22:56 +00:00
Sam Lantinga
09cd129590 Fixed bug #464
Added X1/X2 button constants

--HG--
branch : SDL-1.2
2007-12-29 06:08:17 +00:00
Sam Lantinga
1b32f5a97d Updated version to 1.2.13
--HG--
branch : SDL-1.2
2007-12-29 05:20:51 +00:00
Sam Lantinga
87d97715ae Made the mprotect() fix for SDL_SoftStretch() more general for hardened linux, etc.
--HG--
branch : SDL-1.2
2007-12-29 05:18:33 +00:00
Sam Lantinga
88294ae6a7 Stephen Hurd fixed bug #505
Borland compilers have the alloca() prototype in malloc.h as with WATCOM.

--HG--
branch : SDL-1.2
2007-12-28 08:06:36 +00:00
Sam Lantinga
4884098ba4 Removed stray C++ comment
--HG--
branch : SDL-1.2
2007-12-28 07:50:01 +00:00
Ryan C. Gordon
98e1fb5a80 Date: Mon, 24 Sep 2007 17:54:58 +0200
From: Christopher GAUTIER <krys via.ecp.fr>
To: sdl@lists.libsdl.org
Subject: [SDL] SDL_INPUT_LINUXEV vs SDL_JOYSTICK_LINUXEVHello all,

There seems to be a slight inconsistency between the SDL_INPUT_LINUXEV
define (used in src/joystick/linux/), and SDL_JOYSTICK_LINUXEV defined
in include/SDL_config.h.

SDL_JOYSTICK_LINUXEV is never used, and SDL_INPUT_LINUXEV is not
mentioned in SDL_config.h.in (though set by the ./configure script).
This has the unfortunate effect of breaking the joystick detection on linux
boxes where /dev/input/event* is defined, but not /dev/(input/)?js*.

Trivial patch included.

Cheers.

--HG--
branch : SDL-1.2
2007-09-25 09:59:26 +00:00
Ryan C. Gordon
9fb3f4de89 Removed some C++ style comments from the public headers.
Fixes Bugzilla #474.

--HG--
branch : SDL-1.2
2007-08-05 03:21:18 +00:00
Sam Lantinga
26503f8143 Warn Visual C++ users if they have a stale configure generated SDL_config.h
--HG--
branch : SDL-1.2
2007-07-12 02:51:58 +00:00
Sam Lantinga
2b7f475ce0 Added read-ahead support for Win32 file IO
--HG--
branch : SDL-1.2
2007-07-10 04:01:46 +00:00
Sam Lantinga
66bad5e6ec Fixed bug #451
SDL_memset4 copies a 32-bit value, not an 8-bit value.

--HG--
branch : SDL-1.2
2007-07-08 14:24:27 +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
f21a11a7d3 Minor updates to the Symbian/S60 port, plus project files that weren't
previously imported.

   Fixes Bugzilla #433.

--HG--
branch : SDL-1.2
2007-07-05 04:51:09 +00:00
Sam Lantinga
64f823384c Fixed bug #447
Xlib uses the native locale, not latin1

... the question is... what does the server use? :)

--HG--
branch : SDL-1.2
2007-07-04 07:54:06 +00:00
Sam Lantinga
b9b6dfe97a Fixed bug #349
Solaris doesn't support the LATIN1 character set alias.

--HG--
branch : SDL-1.2
2007-07-04 04:27:47 +00:00
Sam Lantinga
77b434c3a5 Better fix for bug 419
--HG--
branch : SDL-1.2
2007-06-28 05:35:50 +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
64c283b48b Whoops, fixed previous VC6 support patch.
--HG--
branch : SDL-1.2
2007-06-21 18:48:13 +00:00
Ryan C. Gordon
df1d10c53f Fixes for Visual C++ 6.0 with and without the Processor Pack.
--HG--
branch : SDL-1.2
2007-06-21 18:20:59 +00:00
Ryan C. Gordon
5ef9fe1331 Make sure __inline__ isn't defined before #defining it, since some compilers
(like Sun Studio) have this as a predefined macro.

   Fixes Bugzilla #434.

--HG--
branch : SDL-1.2
2007-06-15 07:19:05 +00:00
Ryan C. Gordon
11eee89627 Use system memset/memcpy on Mac OS X, since Apple hand-tunes these for each
processor they ship (and thus, it's likely to beat our code on PowerPC and
 Intel and whatever variants or new archs show up later).

--HG--
branch : SDL-1.2
2007-06-03 06:52:06 +00:00
Ryan C. Gordon
67c6247b61 Committed PulseAudio driver. Thanks, Stephan!
--HG--
branch : SDL-1.2
2007-05-13 23:12:46 +00:00
Ryan C. Gordon
e865281b0e Const correctness patch for SDL_MapRGB and SDL_MapRGBA.
Fixes Bugzilla #421.

--HG--
branch : SDL-1.2
2007-04-04 09:40:40 +00:00
Ryan C. Gordon
22f35aa3cb Adjusted to handle different constness in older versions of iconv.
Fixes Bugzilla #419.

--HG--
branch : SDL-1.2
2007-03-30 20:09:55 +00:00
Ryan C. Gordon
3e834e754f Fixed Mac OS X config header when compiling with -Wundef.
--HG--
branch : SDL-1.2
2007-03-28 00:36:35 +00:00