Commit Graph

1054 Commits

Author SHA1 Message Date
Ryan C. Gordon
c2e4e74ef7 Patched to compile again on x86 systems that use the assembly blitters. 2005-04-20 05:57:39 +00:00
Ryan C. Gordon
b03c155abb Some work on using accelerated alpha blits with hardware surfaces.
From Stephane Marchesin's fork, don't know who originally wrote it.
2005-04-17 10:40:41 +00:00
Ryan C. Gordon
c04dafcbf9 SDL_CDOpen() fails on Linux if data track on disc is mounted in the
filesystem. Removing O_EXCL from open() call fixes this.

Problem and solution noted by "Fosters":
 http://www.libsdl.org/pipermail/sdl/2005-March/068028.html
2005-04-17 10:36:03 +00:00
Ryan C. Gordon
0374a15398 Holding down shift while moving the mouse's scrollwheel on MacOS X makes the
OS report these are "horizontal scrollwheel" events, which confuses gaming
 apps in several legitimate conditions. Now all scrollwheel events are made
 to look vertical when passed to the app.

Patch by John Knottenbelt.

 http://www.libsdl.org/pipermail/sdl/2005-March/067978.html
2005-04-17 10:32:41 +00:00
Ryan C. Gordon
64e340141a Mixer: Visual C MMX asm code now aligns loops to 16 bytes.
This patch came from Stephane Marchesin's codefork, but I don't know who
 wrote it originally.
2005-04-17 10:27:00 +00:00
Ryan C. Gordon
944dc01b12 Fixed direction key input on WinCE devices, thanks to
cal-at-splitreflection-com.

http://www.libsdl.org/pipermail/sdl/2005-April/068072.html
2005-04-17 10:23:58 +00:00
Ryan C. Gordon
eb4de39871 Altivec-optimized blitters!
Vast majority of this work is compliments of Bob Ippolito.

http://www.devolution.com/pipermail/sdl/2005-February/067466.html and many
 other posts.
2005-04-17 10:19:22 +00:00
Ryan C. Gordon
af505fdcfa Added some parentheses for a little more macro safety. Recommended by Petri
Kero, here: http://www.devolution.com/pipermail/sdl/2005-March/067630.html
2005-04-17 10:16:30 +00:00
Patrice Mandin
ceeecf9382 Release CPU when waiting 2005-04-01 15:19:26 +00:00
Patrice Mandin
6eccd4db50 Optimize also for 68020 and higher CPUs 2005-03-30 12:38:03 +00:00
Patrice Mandin
412bbf11e1 Disable debug code 2005-03-07 10:09:21 +00:00
Patrice Mandin
a118483d79 Dynamically create list of video modes, easier to add new ones 2005-03-07 10:00:58 +00:00
Patrice Mandin
a0dc766fb6 Was using width of surface instead of pitch to calculate length of surface width in words 2005-03-02 17:17:26 +00:00
Patrice Mandin
4de6d491f3 Preliminary support for Blowup and Screen Blaster 3 extensions on Atari Falcon 030 2005-02-22 17:57:40 +00:00
Ryan C. Gordon
54d5471cf7 Added testblitspeed to aid in profiling of SDL's blitters. 2005-02-15 11:50:33 +00:00
Sam Lantinga
b3f31e84a4 Ugly hack to make this work with gcc 2.x and 3.x
Thanks to Stephane Marchesin for the dirty dirty work.
2005-02-13 07:10:02 +00:00
Sam Lantinga
b2da79f8be Date: Tue, 01 Feb 2005 17:53:07 -0800
From: Bill May
Subject: [SDL] Diffs for dsp audio in case of failures.

The rewrite recently done for 1.2.8 forgot to handle error cases
by closing the audio.

Here is a patch that does.
2005-02-12 19:39:08 +00:00
Sam Lantinga
0998846e2c [SDL] [PATCH] fix FB_VideoQuit for ia64
Jesse Barnes
Fri Jan 14 11:13:54 PST 2005

I noticed that on my ia64 machine when SDL_Quit was called, the machine would
hang in weird ways.  It turned out to be caused by a machine check in the
memset() call near the top of FB_VideoQuit.  Generally memset shouldn't be
used on I/O regions like the framebuffer or other I/O device memory (the
Linux kernel has special routines for dealing with I/O memory), so I changed
the #ifdef __powerpc__ to #if defined(__powerpc__) || defined(__ia64__) and
SDL_Quit now works properly.  The change should probably be made
unconditional though since doing one byte at a time is the only way to be
portable, afaik.
2005-02-12 18:03:54 +00:00
Sam Lantinga
f37d4736d9 Date: Wed, 26 Jan 2005 13:37:09 GMT
From: Peter Naulls
Subject: RISC OS SDL Patches

Sam, I've attached a diff of the latest changes to libSDL for RISC OS
support.  These changes are by Alan Buckley and myself.

The most significant of these are:

  Optimised assembler blit rountines - I've attached the file
   src/video/riscos/SDL_riscosASM.s which is needed for this.

  Move to using /dev/dsp instead of its own audio implementation.
  This means that src/audio/riscos/SDL_drenderer.c should be removed

  Typo fixes.  Mainly correct spelling of "RISC OS", but some from elsewhere
  too.
2005-02-12 18:01:31 +00:00
Patrice Mandin
7aad2096cd clear convert.buf before filling it 2005-01-29 09:58:40 +00:00
Sam Lantinga
e69d32a51d The fix is going back in. :) 2005-01-25 17:58:44 +00:00
Sam Lantinga
3378f9fe8a Date: Mon, 24 Jan 2005 21:37:56 +0800
From: Chris Taylor
Subject: Patch to put back dynamic OpenGL loading for MPW

I sent a patch a while ago that removes dynamic OpenGL loading for
Macintosh Programmer's Workshop. Dynamic loading DOES actually work
when an SDL program is built with MPW, it just has to be set up for it.
(Whoops!!) This is the ideal way to get OpenGL extensions to work,
which D2X uses quite a few of.

This patch puts dynamic loading back in SDL for Mac OS 9. It applies to
current CVS. I noticed that two members need to be set when
DrawSprocket is used.
2005-01-25 16:57:11 +00:00
Sam Lantinga
ec15ddd4df Date: Sun, 16 Jan 2005 19:20:15 +0100
From: Stephane Marchesin
To: Kirill Ponomarew
Subject: [SDL] Problem on x86_64 with latest CVS (Re: sdl12 with gcc-2.95)

>-I../../src -I../../src/main/freebsd -I../../src/audio
>-I../../src/video -I../../src/video/XFree86/extensions
>-I../../src/events -I../../src/joystick -I../../src/cdrom
>-I../../src/thread -I../../src/timer -I../../src/endian
>-I../../src/file -I../../src/thread -MT SDL_endian.lo -MD -MP -MF
>.deps/SDL_endian.Tpo -c SDL_endian.c  -fPIC -DPIC -o
>.libs/SDL_endian.o
>{standard input}: Assembler messages:
>{standard input}:144: Error: suffix or operands invalid for `xchg'
>*** Error code 1
>
That's a totally different problem. This was introduced in CVS 4 days ago :
http://www.libsdl.org/cgi/cvsweb.cgi/SDL12/include/SDL_endian.h.diff?r1=1.11\
&r2=1.12

Just revert this patch.
2005-01-18 18:40:48 +00:00
Sam Lantinga
12274bb72e Date: Sat, 15 Jan 2005 15:06:01 -0600
From: Tyler Montbriand
Subject: [SDL] minor bugfix for test/testoverlay2.c

Programs that use malloc ought to #include <stdlib.h> .  On 32-bit systems you
can get away with not including it, but on 64-bit systems it will assume
malloc() returns a 32-bit integer and butcher the 64-bit pointers it returns.
2005-01-18 18:32:10 +00:00
Ryan C. Gordon
8a2dfc508f Date: Mon, 17 Jan 2005 20:54:50 +0200
From: Ville [snip]
Subject: [PATCH] SDL/DirectFB: remove Matrox CRTC2 flicker filter

Hi,

This patch removes the flicker filter option from the DirectFB backend's
Matrox CRTC2 code in SDL. I will be removing the option from DirectFB
(because it doesn't actually work) and that would cause the SDL code to
fail without this fix.

I was going to send this to some SDL list directly but libsdl.org is down
so I'm not sure what if any lists there are. Thomas Jarosch (the guy who
wrote the code) said you would accept SDL patches. Let me know if I should
send this somewhere else.

-- Ville Syrj�l� syrjala _at sci.fi http://www.sci.fi/~syrjala/
2005-01-17 19:38:28 +00:00
Sam Lantinga
3457abf6ba Fix various problems with the timer code.
* SDL_timer_running wasn't always updated correctly.
* Fixed occasional crash in SDL_SetTimer() when clearing threaded timers
* It was possible to get both the timer thread and event thread running
* Other misc. cleanup
2005-01-13 23:24:56 +00:00
Sam Lantinga
9afc8f4748 Clarified the code in the pixel format allocation
Added support for direct color 8-bpp modes.
2005-01-12 19:38:24 +00:00
Sam Lantinga
c2113a949a Select patches included from The NetBSD Package Collection (www.pkgsrc.org) 2005-01-12 06:04:48 +00:00
Sam Lantinga
aa6dff1be1 Avoid gcc parse errors on Win32. This is fine in general because gcc uses
the cdecl calling convention by default.
2005-01-08 23:13:01 +00:00
Sam Lantinga
859fb5acc1 Bumped the minor version number... 2005-01-04 19:06:23 +00:00
Sam Lantinga
7e956b2b3d Fix potential use of freed memory in the threaded timer system 2005-01-04 19:05:32 +00:00
Sam Lantinga
0c5e110baf *** empty log message *** 2005-01-04 19:04:14 +00:00
Sam Lantinga
cefc7550ee Date: Sun, 2 Jan 2005 18:36:09 +0100
From: Jon Daniel
Subject: [SDL] KeyRepeat fix

If you switch keys very fast and hold the last one it
doesn't get repeated because the key release of the first key
occured after the key press of the second key.
Unfortunatly the key release of the first key sets
SDL_KeyRepeat.timestamp = 0; causing the the second key not to repeat.

This should be always reproducable. I've only checked this on x86-64
X11.

To fix this I just added another condition to make sure the sym of the
released key matches SDL_KeyRepeat.key.keysym.sym.
2005-01-03 00:24:44 +00:00
Sam Lantinga
2945171f09 Allow SDL to be loaded by Matlab 2005-01-02 05:11:16 +00:00
Sam Lantinga
3da2c5f3f9 Date: Fri, 31 Dec 2004 04:14:09 +0900
From: Hayashi Naoyuki
Subject: SDL patch for Tru64 UNIX 4.0X

SDL-1.2.8 support only Tru64 5.X.
This patch is for Tru64 UNIX 4.X.(tested on Tru64 UNIX 4.0G and 5.1B)

SDL-1.2.8/configure.in:
ld doesn't accept -pthread option.
cc -pthread has same effect as -D_REENTRANT when compiling,
and has same effect as -lpthread -lexc when linking.

SDL-1.2.8/include/begin_code.h:
Old Compaq C Compiler accept not inline but __inline.

SDL-1.2.8/src/audio/SDL_mixer_MMX.c:
SDL-1.2.8/src/audio/SDL_mixer_MMX.h:
Old Compaq C Compiler doesn't accept //.

SDL-1.2.8/src/cdrom/osf/SDL_syscdrom.c:
When becoming Tru64 v5.0 from Tru64 v4.0,
the arrangement of the cd-rom device was changed.
2005-01-02 05:05:21 +00:00
Sam Lantinga
8e11c2d03d Date: Fri, 24 Dec 2004 23:32:06 -0500
From: Mike Frysinger
Subject: [SDL] minor fix for gcc-2.x building

in src/video/directfb/SDL_DirectFB_video.c, some variables are not declared at
the beginning of scope ... newer gcc's will accept this, but gcc-2.x does not

find attached a simple patch by Matt Taylor to resolve this
http://bugs.gentoo.org/show_bug.cgi?id=75392
2004-12-27 20:03:53 +00:00
Sam Lantinga
3c6e4c7c41 *** empty log message *** 2004-12-19 22:04:44 +00:00
Sam Lantinga
830e46be5f *** empty log message *** 2004-12-16 06:39:54 +00:00
Sam Lantinga
61c0457298 *** empty log message *** 2004-12-16 05:29:55 +00:00
Sam Lantinga
ac14247b40 Added change log notes 2004-12-15 01:02:20 +00:00
Sam Lantinga
f950d1bdc1 Date: Tue, 14 Dec 2004 12:08:30 +0100
From: Marcin Konicki
Subject: Re: [SDL] SDL 1.2.8 Prerelease

I'm sending small fix for BeOS, which prevents filling up SDL's message
queue too fast.
Without it, SDL receives "key down" messages from BeOS code, for each key
repeat (BeOS handles key repeats itself, and application can check if
received "key down" message from BeOS is first time key down, or if it's
repeat, and which repeat it is). Since there is no way for "sdl driver" to
turn off "default" SDL's key-repeat mechanism, they were working both at
the same time (and queue could be filled up very fast).
So this patch removes handling "key down" message from BeOS if it's
key_repeat "type".
2004-12-14 18:23:27 +00:00
Sam Lantinga
dcb2b7a7ae Date: Mon, 13 Dec 2004 21:28:18 -0500
From: Jonathan Atkins
Subject: [SDL] SDL_SaveBMP width bugfix

this fixes the pitch versus width difference that can happen
(especially for 8bit and 24bit (with the exact RGBAmasks) surfaces)
when you use SDL_SaveBMP.  The problem was the pitch was used
instead of the width, which in some cases is much wider than the
screen area you really want to save...making for ugly crud on the
saved image borders.
This code has been tested with & without pitch overhangs...and
with the right masks for 24 bit surfaces.
I tested 8,15,16,24,32-0RGB,32-RGBA(with no SDL_SRCALPHA flag).
2004-12-14 06:20:49 +00:00
Sam Lantinga
5df19e723b *** empty log message *** 2004-12-13 08:49:17 +00:00
Sam Lantinga
1cb2ab06a7 Whoops. :) 2004-12-13 08:00:14 +00:00
Sam Lantinga
80a796e7d0 No really, don't link with the ALSA library! 2004-12-13 07:32:53 +00:00
Sam Lantinga
7e5b833701 ALSA is loaded dynamically now, so it's safe to build into the library 2004-12-13 07:07:08 +00:00
Patrice Mandin
2b06776e96 Document new OpenGL feature 2004-12-06 15:01:00 +00:00
Sam Lantinga
84ec8e2a0c Updated SDL for MacOS X Xcode support 2004-12-06 04:17:56 +00:00
Patrice Mandin
f621dc8986 Some Atari OpenGL implementations draw upside down 2004-12-04 20:53:58 +00:00
Patrice Mandin
2085c82819 Be sure to compile without OpenGL enabled 2004-12-04 10:31:16 +00:00