Commit Graph

5003 Commits

Author SHA1 Message Date
Bob Pendleton
7e05ef1526 Start of redesign, getting rid of 8 and 16 bit operations in .h and test files. 2009-08-11 21:27:19 +00:00
Bob Pendleton
e80feea87f I forgot to copy the dummy version to macosx. 2009-08-11 21:15:18 +00:00
Sam Lantinga
91f3686c2e David Carre to Sam
Hello sam, me again.

I'v fixed another bug in the pandora code, it's on the no-X videodriver, i forgot to add some code to destroy the window so it was impossible to reload SDL inside the same application (eglTerminate).

You'll find the svn diff attached.

See you,
David.
2009-08-11 13:45:01 +00:00
Sam Lantinga
0449f9f82c Fixed bug #746
Fixed freeze when trying to memset with 0 length
2009-08-07 10:20:10 +00:00
Sam Lantinga
d705b73ca4 Added request for SDL handling the desktop background window 2009-08-07 09:44:40 +00:00
Edgar Simo
2ca41a8224 Patch by Janosch Gräf <janosch.graef@gmx.net>
I just noticed that there are rarely error messages and added some.
2009-08-05 16:31:49 +00:00
Sam Lantinga
1412877281 Add clipboard support to TODO list 2009-08-05 08:12:31 +00:00
Couriersud
df5d56827d Fixed compiling SDL_fsaudio.c against fusionsound 1.0.0 2009-08-03 18:07:31 +00:00
Sam Lantinga
fe959d8e24 Fixed type size for test_bit() 2009-08-02 20:45:11 +00:00
Sam Lantinga
91e861375f Added SDL_revision.h 2009-08-02 18:40:18 +00:00
Sam Lantinga
7195141c35 Clarified API documentation 2009-08-02 18:39:57 +00:00
Sam Lantinga
32a6f003ee Added TODO for automated testing 2009-08-02 18:39:24 +00:00
Sam Lantinga
b457fdca75 Removed arbitrary window size limitation 2009-08-02 14:27:48 +00:00
Sam Lantinga
59c4177896 Whoops, still need the iPhoneOS config file. :) 2009-08-02 13:51:20 +00:00
Sam Lantinga
63d198944c Added missing SDL_revision.h 2009-08-02 13:49:13 +00:00
Sam Lantinga
39dbb24492 Added SDL_atomic.h, SDL_power.h, and SDL_revision.h to public API headers
Added dummy atomic source files for now
2009-08-02 13:46:34 +00:00
Sam Lantinga
feb57f8c79 Added SDL_atomic.h and SDL_power.h to public API headers
Added atomic source files (which don't compile currently)
2009-08-02 13:08:19 +00:00
Sam Lantinga
24775fd01d Better check which includes #define used in stdint.h 2009-08-02 12:54:59 +00:00
Sam Lantinga
85a708db37 Don't redefine types if HAVE_STDINT_H is defined 2009-08-02 12:45:20 +00:00
Sam Lantinga
8b87364708 Patch from David Carre:
I fixed a bug in the "SDL_DestroyRenderer()" function in the pandora x11 renderer (in fact the bug was in the "X11_GLES_MakeCurrent()" function) that was causing a crash when exiting SDL.

There was a problem while terminating the x11 egl window, that was preventing to quit/close SDL/SDL-window then reload SDL/SDL-window inside the same application.
2009-07-30 14:53:57 +00:00
Mike Gorchak
84f82b23eb Support for native and emulated atomic operations has been added. 2009-07-19 08:04:59 +00:00
Bob Pendleton
a71b57e1f0 volitile... duh, yeah the variable need to be labeled volitile 2009-07-09 21:31:27 +00:00
Sam Lantinga
11bb913576 Documentation fix fix 2009-07-07 14:02:57 +00:00
Bob Pendleton
1f12c11429 Applied patch from bug id=762 provided by Pierre Phaneuf
this patch enables compilation of SDL_atomic stuff on the Mac.
2009-07-06 21:56:38 +00:00
Bob Pendleton
e40496bf79 Documentation fix. 2009-07-06 21:48:52 +00:00
Bob Pendleton
1bf9cab1ff This is a cosmetic fix, I found a stupid typo 2009-07-02 21:47:02 +00:00
Bob Pendleton
db14860f8a Another documentation fix, Thanks to Mason Wheeler for finding these. 2009-07-02 16:53:56 +00:00
Bob Pendleton
2efcc6f4eb Documentation fix. 2009-07-02 16:15:55 +00:00
Bob Pendleton
ffadc2b7ab Corrected documentation error for SDL_RenderFill. 2009-06-30 22:19:10 +00:00
Ryan C. Gordon
205b4d9be4 Added testpower to svn:ignore 2009-06-30 06:53:17 +00:00
Ryan C. Gordon
1cb422c52f Moved hardcoding of "/proc/apm" elsewhere. 2009-06-30 06:27:08 +00:00
Ryan C. Gordon
1d704b5829 Linux /proc/apm: handle hex and decimal (and octal!) values. 2009-06-30 06:26:02 +00:00
Ryan C. Gordon
f9b58538d9 Linux /proc/acpi: check for ac_adapter states, other cleanup.
Still not tested, though!
2009-06-30 05:44:00 +00:00
Ryan C. Gordon
89521cccdb Removed stub for Linux /sys/power processing.
Apparently /sys/power doesn't expose battery information at this time.
2009-06-30 05:27:11 +00:00
Ryan C. Gordon
9a2c54efec Power: First shot at Linux /proc/acpi/battery support.
Untested, not even tried to compile yet.
2009-06-30 03:50:30 +00:00
Bob Pendleton
e53cd95852 I've made so many changes I don't dare continue until I check the current stuff in.
/test/testatomic.c performs absolutely basic tests to show that the function work as expected. Need a second test to do more detailed tests.

/include/SDL_atomic.h provides declarations for all included functions.

/src/atomic/linux/SDL_atomic.c provided all the functions. On a generic built the 64 bit functions work, but they are emulated. On a build for -march=pentium and above the 64 bit functions use native instructions
/src/atomic/dummy/SDL_atomic.c emulates all the operations using SDL_mutex.h.
/src/atomic/win32/SDL_atomic.c is a copy of dummy
/src/atomic/macosx/SDL_atomic.s is a copy of dummy

These versions of SDL_atomic.c provide a frame work for building the library with a mixture of native and emulated functions. This allows the whole library to be provided on all platforms. (I hope.)
I hope this fits with the SDL philosophy of either providing a common subset or emulating when the platform is missing a feature.

I have not added dummy, macosx, or win32 to the build. They are there as place holders for future work.

I have modified congifure.in to compile sources in /src/atomic/linux. (The SDL configure.in file is an amazing piece of work and I hope I didn't mess it up. :-)
2009-06-29 19:54:43 +00:00
Bob Pendleton
9302a68559 Disabling 64 bit atomics operations until I figure out why they do not link. 2009-06-24 22:24:23 +00:00
Bob Pendleton
c0646fda71 First draft of atomic operations code for GCC and linux. 2009-06-24 20:20:57 +00:00
Bob Pendleton
0b5bc4d23b This check in updates SDL_atomic.h to reflect the new set of atomic operations in 32 and 64 bit form.
It also update configure.in to compile the linux version of the library. The three versions are all dummies
implementations that do nothing. They are being checked in as place holders. Mostly, I just wanted to get
place holders and the configure.in checked in.
2009-06-24 20:04:08 +00:00
Ryan C. Gordon
015036e09c Added power API and test program to Visual C++ project files. 2009-06-17 04:26:19 +00:00
Sam Lantinga
d62da4b117 Alexei Tereschenko
Why not to use hardware vertex processing instead of software one if
it is available in D3D render driver? With hardware processing
testsprite2 runs three times faster on all videocards which I could
test.
2009-06-16 14:34:15 +00:00
Sam Lantinga
41c5df7eae Fixed some compile errors and warnings under Visual C++ 2009-06-12 08:41:48 +00:00
Bob Pendleton
eb924e9a2d Mouse events now report the correct window id and window enter/leave events are now reported. 2009-06-11 20:08:33 +00:00
Mike Gorchak
2949fd46f1 Proper window resize handling in GLES test application. 2009-06-11 06:03:05 +00:00
Mike Gorchak
bfe3c0a653 Fixed problems with OpenGL ES window resizing. 2009-06-11 05:57:32 +00:00
Mike Gorchak
9168def9ac Note about hardware mouse cursor has been added. 2009-06-10 18:32:42 +00:00
Sam Lantinga
dd18a26edd Fixed bug #750
Since many different event structures include windowID it should be placed near
the beginning of the structure (preferably right after type) so it's position
is the same between different events.

This is to avoid code like this:
if (event.type == SDL_WINDOWEVENT)
    win = event.window.windowID;
else if ((SDL_EVENTMASK(event.type) & SDL_KEYEVENTMASK) != 0)
    win = event.key.windowID;
else if (event.type == SDL_TEXTINPUT)
    win = event.text.windowID;
else if (event.type == SDL_MOUSEMOTION)
    win = event.motion.windowID;
else if ((SDL_EVENTMASK(event.type) & (SDL_MOUBUTTONDOWNMASK |
SDL_MOUBUTTONUPMASK)) != 0)
    win = event.button.windowID;
else if (event.type == SDL_MOUSEWHEEL)
    win = event.wheel.windowID;
...

in favor of:
win = event.window.windowID;
2009-06-10 14:00:21 +00:00
Sam Lantinga
8d455c1b26 Added missing files for OpenGL ES support 2009-06-10 13:54:13 +00:00
Sam Lantinga
702d8d5305 Added missing header file for Pandora support 2009-06-10 13:53:53 +00:00
Sam Lantinga
16a9ead7ce Whoops, didn't mean to commit unfinished patch 2009-06-10 13:46:54 +00:00