summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Allow "pulseaudio" as well as "pulse" so SDL 1.2 and 2.0 support both names ↵baserock/morphSam Lantinga2013-02-271-0/+5
| | | | for the pulseaudio driver.
* Fix pulseaudio dynamic linking for Solaris builds.Shawn Walker2013-02-191-2/+21
| | | | Don't link to unnecessary filter libraries for pthread and rt on Solaris.
* Fix syntax error causing Solaris build failures.Shawn Walker2013-02-191-0/+1
|
* Fixed bug 1679 - Error in buffer size setting in Haiku/BeOS audio driverSam Lantinga2013-02-111-2/+2
| | | | | | | | | | PulkoMandy Just like in SDL, audio buffer sizes for BeOS and Haiku BSoundPlayer are sized in bytes, not frames. SDL was feeding the wrong value, leading to buffers smaller than expected and weird behaviour in some unsuspecting programs (noticed it in HivelyTracker but others are likely affected as well. The fix is fortunately very simple
* gem: revert back to graf_mkstate usage to get mouse statePatrice Mandin2012-11-041-21/+11
|
* gem: Check mouse focus inside mouse motion functionPatrice Mandin2012-11-041-10/+10
|
* gem: move some variables, and remove duplicatesPatrice Mandin2012-11-041-14/+12
|
* gem: Handle mouse motion by checking when cursor leave previous position. ↵Patrice Mandin2012-10-121-22/+40
| | | | Add function to check mouse focus using visible window areas.
* gem: Handle relative mouse motion earlierPatrice Mandin2012-10-121-23/+24
|
* gem: Split mouse motion and mouse buttons handlingPatrice Mandin2012-10-121-27/+33
|
* gem: Move special keys handling in a separate functionPatrice Mandin2012-10-121-21/+18
|
* Use variables for what they were created forPatrice Mandin2012-10-111-0/+2
|
* XFlush() after setting the icon.Ryan C. Gordon2012-10-051-0/+1
|
* Try to use _NET_WM_ICON if possible for X11's SDL_WM_SetIcon() implementation.Ryan C. Gordon2012-10-051-0/+75
| | | | This lets us have larger icons with more colors.
* NetBSD wscons support by wizSam Lantinga2012-09-252-2/+18
|
* NetBSD patch to use AUDIO_GETBUFINFO when available (contributed by jmcneill)Sam Lantinga2012-09-251-4/+8
|
* Use fast path for RGB 565 -> 32-bit XRGB 8888Sam Lantinga2012-09-021-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Hello Sam, while profiling ScummVM I noticed it was making use of the generic BlitNToN blitter, which struck me as odd because it should be a very classical codepath. After investigating, I saw that in the blit op chooser: { 0x0000F800,0x000007E0,0x0000001F, 4, 0x00FF0000,0x0000FF00,0x000000FF, 0, NULL, Blit_RGB565_ARGB8888, SET_ALPHA }, { 0x0000F800,0x000007E0,0x0000001F, 4, 0x000000FF,0x0000FF00,0x00FF0000, 0, NULL, Blit_RGB565_ABGR8888, SET_ALPHA }, { 0x0000F800,0x000007E0,0x0000001F, 4, 0xFF000000,0x00FF0000,0x0000FF00, 0, NULL, Blit_RGB565_RGBA8888, SET_ALPHA }, { 0x0000F800,0x000007E0,0x0000001F, 4, 0x0000FF00,0x00FF0000,0xFF000000, 0, NULL, Blit_RGB565_BGRA8888, SET_ALPHA }, Couldn't the optimized versions be used for NO_ALPHA too? I take it that the resulting alpha component can be undefined as it should never be used. I tried this (see attached patch) and it worked perfectly (and therefore faster) on ScummVM but there might be a trick (I'm not expert at the semantics of SDL, ie NO_ALPHA, SET_ALPHA and COPY_ALPHA there). What do you think? Cheers, Bertrand
* Removed _GNU_SOURCE define. We'll see if we need it.Ryan C. Gordon2012-08-251-2/+1
|
* Fixed bug 1561 - BSD joystick: Increase the number of uhid devices to scanSam Lantinga2012-08-241-1/+1
| | | | | | | | Brad Smith 2012-08-01 20:10:19 PDT The attached patch from the OpenBSD ports tree is to increase the number of uhid devices to scan for joysticks. It's somewhat easy to exhaust the default number of devices which are scanned.
* Minor typo fix.Ryan C. Gordon2012-08-151-1/+1
|
* Removed a function we don't call anymore.Ryan C. Gordon2012-08-132-10/+0
|
* Fixed bug 1543 - Fix dynamic loading of X libs on OpenBSDSam Lantinga2012-07-181-0/+6
| | | | | Brad Smith 2012-07-18 13:43:34 PDT autoconf patch to fix X dynamic loading of libraries on OpenBSD
* Fixed bug 1434 - Add AltiVec detection for OpenBSD/powerpcSam Lantinga2012-07-181-3/+11
| | | | | | | Brad Smith 2012-02-29 19:31:46 PST The attached patch adds AltiVec detection for OpenBSD/powerpc. Please apply the patch to both 2.0 and 1.2.
* Fixed configure script.Ryan C. Gordon2012-07-111-0/+1
|
* Added OpenBSD "sndio" audio target.Ryan C. Gordon2012-07-086-1/+373
| | | | Thanks to Brad Smith and the OpenBSD team for the patch!
* Marcus von Appen fixed bug 1529: CDROM detection misbehaviour for FreeBSD ↵Sam Lantinga2012-07-021-1/+1
| | | | | | | | 7.x and newer FreeBSD's device naming changed in several ways since FreeBSD 6.x. The attached patch fixes the device naming scheme for FreeBSD 7 and newer (the currently supported upstream version of FreeBSD).
* Changed a ">" to ">="Ryan C. Gordon2012-06-031-1/+1
|
* Linux evdev: ignore joystick axis events if they aren't in a sane range.Ryan C. Gordon2012-06-031-0/+3
|
* Added VS2010 solution for SDL-1.2Andreas Schiffler2012-05-123-0/+631
|
* Fixed bug 1426 - SDL_SemWaitTimeout returns -1 and sets error instead of ↵Sam Lantinga2012-02-202-3/+14
| | | | | | | | SDL_MUTEX_TIMEDOUT on time out deraj 2012-02-19 19:01:08 PST Fix to treat ETIMEDOUT as a time out instead of an error (and update the test)
* Fixed bug 1424 - Handling of alpha channel in Altivec accelerated blit functionsSam Lantinga2012-02-201-0/+8
| | | | | | | | | | | | | | | | | | | | | | evilbite 2012-02-19 09:38:21 PST There is only one Altivec accelerated blit function (ConvertAltivec32to32_prefetch() or ConvertAltivec32to32_noprefetch(), depending on the CPU used) that is supposed to handle all alpha combinations. This works as follows for every pixel line: 1. Blit single pixels until an aligned address is reached 2. Accelerated blit as far as possible 3. Blit single remaining pixels Part 2. is set up correctly to handle different combinations of the alpha channels of the participating surfaces. Parts 1. and 3. only do a simple copy of all the pixel's components from souce to destination. But when the source surface has no alpha channel (Amask is 0, e.g. the video surface) the surface's alpha value must be used instead. Otherwise crap (uninitialized data) is being copied to the destiniation's alpha channel. The attached patch is a quick'n'dirty solution to the problem. A more sophisticated solution might require separate functions for different combinations of the alpha channels of the participating surfaces.
* Fixed bug 1427 - integer passed to XChangeProperty() causes crashSam Lantinga2012-02-201-3/+8
| | | | | | | | | | | | | | | | | Julian Coleman 2012-02-20 06:51:12 PST In src/video/x11/SDL_x11video.c, the result of getpid(), i.e., a pid_t is passed to: XChangeProperty(..., 32, ...) However, using 32 here means that Xlib treats the value as a long, and pid_t is an int. So, we get a bus error inside Xlib. The fix is to make sure that anything passed to XChangeProperty() is aligned correctly. Note, that the other calls to XChangeProperty() pass long values here. The proposed patch makes a union of the pid_t return type from getpid() and a dummy long. This has been tested to fix the bus error crash on NetBSD/sparc64.
* FreeBSD compile fixSam Lantinga2012-02-151-1/+1
| | | | | | | | | Robert Millan src/joystick/bsd/SDL_sysjoystick.c makes the invalid assumption that __FreeBSD_kernel__ implies presence of "ucr_data" struct member. This breaks recent versions of FreeBSD 10-CURRENT, FreeBSD 9-STABLE and Debian GNU/kFreeBSD "wheezy/sid".
* Allow building from somewhere other than the source directorySam Lantinga2012-02-041-0/+1
|
* Fixed bug 1390 - X11_KeyToUnicodeSam Lantinga2012-01-221-0/+9
| | | | | | | | | | | | | | | | | manuel.montezelo 2012-01-22 08:56:18 PST We had the following bug report at Debian: http://bugs.debian.org/376560 Same one in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/libsdl1.2/+bug/66217 We've been including a patch since then (attached) to actually export the symbol, since 2006. In the last release the function seems to be there, alive and kicking. It's affecting other people too: http://www.garagegames.com/community/forums/viewthread/52287
* Added the correct version.rc to the Visual Studio build.Sam Lantinga2012-01-213-110/+9
|
* Added tag release-1.2.15 for changeset fba40d9f4a73Sam Lantinga2012-01-200-0/+0
|
* Fixed bug 1387 - Patch: fix minor typos in SDL-1.2 HTML docsrelease-1.2.15Sam Lantinga2012-01-203-3/+3
| | | | | | bl0ckedusersoft 2012-01-20 12:14:57 PST This patch fixes a few minor typos in the SDL-1.2 HTML docs.
* Fixed inline assembly warning for PPCSam Lantinga2012-01-191-2/+2
|
* More gyrations trying to get SDL 1.2 to work correctly on all Mac OS X versions.Sam Lantinga2012-01-191-1/+2
| | | | | Lion gets mad if you try to set a fullscreen context linked with the new SDK and using these APIs. We're going to try to do this smarter in 1.3, but let's just make it work.
* Minor tweak (use variable instead of macro).Ryan C. Gordon2012-01-181-1/+1
|
* Quartz: minor deprecated function cleanups.Ryan C. Gordon2012-01-181-6/+10
|
* Quartz: Fixed fullscreen OpenGL on 10.7, when built with 10.7 SDK.Ryan C. Gordon2012-01-181-1/+0
|
* Removed variables that current GCC builds warn on as set and never used.Ryan C. Gordon2012-01-186-14/+12
|
* X11: Remove GLX_BUFFER_SIZE attribute.Ryan C. Gordon2012-01-181-5/+0
| | | | This attribute is ignored if we set GLX_RGBA, which we do.
* Add dynamic symbol for _XGetRequest, which libX11 1.4.99.1 added.Ryan C. Gordon2012-01-182-0/+30
| | | | Fixes Bugzilla #1376.
* Quartz: Fix mouse warping freezing for 250+ milliseconds.Ryan C. Gordon2012-01-161-3/+4
| | | | | | Fixes Bugzilla #1375. Thanks to Jeremiah Morris for the patch!
* Check for sem_timedwait(), which isn't available on some systems (including ↵Sam Lantinga2012-01-153-0/+29
| | | | OpenBSD)
* Switched compatibility version to 1 since the ABI is compatible with ↵Sam Lantinga2012-01-141-2/+2
| | | | previous versions
* Fixed typo in mask comparisonSam Lantinga2012-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | Bl0ckeduser I downloaded the SDL 1.2.15 prerelease and compiled it (under Mac OS Classic). All the tests worked without issues, but the compiler gave this warning [formatting edited for email format]: } else if ( vf->Rmask == 0xFF00 && (vf->Bmask = 0xFF000000) ) { ":src:video:SDL_video.c"; line 990 #Warning 2: possible unintended assignment I discussed this with another programmer and we came to the conclusion that this is probably a typo. I have checked the latest mercurial sources, and the possible typo is still there. Bl0ckeduser