Commit graph

2963 commits

Author SHA1 Message Date
Sam Lantinga
1bd5e5471f From: Jjgod Jiang <gzjjgod@gmail.com>
Date: Sat, 5 Sep 2009 17:32:28 +0800

Replace old Keyboard Layout APIs with new Text Input Sources APIs for 10.{5,6}

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403777
2009-09-05 09:55:25 +00:00
Sam Lantinga
34458769f0 From: Jjgod Jiang <gzjjgod@gmail.com>
Date: Sat, 5 Sep 2009 17:27:07 +0800

Disable NSScreen setFrame: hack in 10.6 since it no longer work

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403776
2009-09-05 09:54:45 +00:00
Sam Lantinga
b9d44209a4 Updated fatbuild.sh to build for 10.4u SDK
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403775
2009-09-05 09:51:39 +00:00
Sam Lantinga
707116c0c0 Removed references to CD-ROM support from the README files
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403774
2009-09-05 09:12:03 +00:00
Sam Lantinga
633d710201 CD-ROM support is so passé :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403773
2009-09-05 09:11:03 +00:00
Sam Lantinga
8c260f6e84 Bye bye SoundManager, you are officially obsolete...
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403772
2009-09-05 09:03:35 +00:00
Sam Lantinga
063b24f5a2 Fixed a few issues compiling with Mac OS X 10.6
Unfortunately the audio and cdrom systems do not build at all, and if you
disable those, SDL still fails to link with these errors:

Undefined symbols:
  "_OBJC_IVAR_$_NSScreen._frame", referenced from:
      -[NSScreen(NSScreenAccess) setFrame:] in SDL_cocoamodes.o
  "_KLGetKeyboardLayoutProperty", referenced from:
      _UpdateKeymap in SDL_cocoakeyboard.o
      _UpdateKeymap in SDL_cocoakeyboard.o
  "_KLGetCurrentKeyboardLayout", referenced from:
      _UpdateKeymap in SDL_cocoakeyboard.o
ld: symbol(s) not found

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403771
2009-09-05 07:33:54 +00:00
Sam Lantinga
824f06e60b Updated glext.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403770
2009-09-05 07:13:01 +00:00
Sam Lantinga
502905163a Fix suggested by Bob
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403767
2009-08-20 04:40:02 +00:00
Sam Lantinga
5f97d85c7e David Carre to Sam
When i call the "SDL_Quit()" function, it call the func "SDL_QuitSubSystem(SDL_INIT_EVERYTHING)", which call the "SDL_VideoQuit()" function.

It's where i'm lost, this function "SDL_VideoQuit()" will recall the "SDL_Quit()" function (i don't find where it is called), which in turn recall the "SDL_QuitSubSystem(SDL_INIT_EVERYTHING)", which in turn recall "SDL_VideoQuit()", which cause a "double free" seg fault since it has been already called.

I have set the num_displays to 0 instead of 1, so it wont free it twice in the videoquit function loop.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403766
2009-08-18 03:26:53 +00:00
Bob Pendleton
96e3a0d5c7 Start of redesign, getting rid of 8 and 16 bit operations in .h and test files.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403763
2009-08-11 21:27:19 +00:00
Bob Pendleton
6f258c0f99 I forgot to copy the dummy version to macosx.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403762
2009-08-11 21:15:18 +00:00
Sam Lantinga
93ce786b11 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403760
2009-08-11 13:45:01 +00:00
Sam Lantinga
f558ab804b Fixed bug #746
Fixed freeze when trying to memset with 0 length

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403756
2009-08-07 10:20:10 +00:00
Sam Lantinga
b4a5bda1c1 Added request for SDL handling the desktop background window
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403755
2009-08-07 09:44:40 +00:00
Edgar Simo
4305fc3c0b Patch by Janosch Gräf <janosch.graef@gmx.net>
I just noticed that there are rarely error messages and added some.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403744
2009-08-05 16:31:49 +00:00
Sam Lantinga
3d28b5de16 Add clipboard support to TODO list
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403743
2009-08-05 08:12:31 +00:00
Couriersud
118451c159 Fixed compiling SDL_fsaudio.c against fusionsound 1.0.0
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403735
2009-08-03 18:07:31 +00:00
Sam Lantinga
5c172c5af8 Fixed type size for test_bit()
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403731
2009-08-02 20:45:11 +00:00
Sam Lantinga
554dcb60df Added SDL_revision.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403729
2009-08-02 18:40:18 +00:00
Sam Lantinga
5b2bf45c12 Clarified API documentation
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403728
2009-08-02 18:39:57 +00:00
Sam Lantinga
45f06cc73d Added TODO for automated testing
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403727
2009-08-02 18:39:24 +00:00
Sam Lantinga
87f6311a17 Removed arbitrary window size limitation
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403723
2009-08-02 14:27:48 +00:00
Sam Lantinga
ca4e2429aa Whoops, still need the iPhoneOS config file. :)
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403722
2009-08-02 13:51:20 +00:00
Sam Lantinga
72f55d5d83 Added missing SDL_revision.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403721
2009-08-02 13:49:13 +00:00
Sam Lantinga
0e665950e9 Added SDL_atomic.h, SDL_power.h, and SDL_revision.h to public API headers
Added dummy atomic source files for now

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403720
2009-08-02 13:46:34 +00:00
Sam Lantinga
d942501bf9 Added SDL_atomic.h and SDL_power.h to public API headers
Added atomic source files (which don't compile currently)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403719
2009-08-02 13:08:19 +00:00
Sam Lantinga
51273d8424 Better check which includes #define used in stdint.h
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403718
2009-08-02 12:54:59 +00:00
Sam Lantinga
72e444bb08 Don't redefine types if HAVE_STDINT_H is defined
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403717
2009-08-02 12:45:20 +00:00
Sam Lantinga
8a68fef797 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403715
2009-07-30 14:53:57 +00:00
Mike Gorchak
01700524c1 Support for native and emulated atomic operations has been added.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403710
2009-07-19 08:04:59 +00:00
Bob Pendleton
66de021c3d volitile... duh, yeah the variable need to be labeled volitile
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403698
2009-07-09 21:31:27 +00:00
Sam Lantinga
29167b5730 Documentation fix fix
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403692
2009-07-07 14:02:57 +00:00
Bob Pendleton
5f0c128f01 Applied patch from bug id=762 provided by Pierre Phaneuf
this patch enables compilation of SDL_atomic stuff on the Mac.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403689
2009-07-06 21:56:38 +00:00
Bob Pendleton
5d3a5aa3bd Documentation fix.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403688
2009-07-06 21:48:52 +00:00
Bob Pendleton
46b21a2522 This is a cosmetic fix, I found a stupid typo
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403687
2009-07-02 21:47:02 +00:00
Bob Pendleton
29a81c8167 Another documentation fix, Thanks to Mason Wheeler for finding these.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403686
2009-07-02 16:53:56 +00:00
Bob Pendleton
8625a0991d Documentation fix.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403685
2009-07-02 16:15:55 +00:00
Bob Pendleton
58ee3a8b76 Corrected documentation error for SDL_RenderFill.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403678
2009-06-30 22:19:10 +00:00
Ryan C. Gordon
77773a07a2 Added testpower to svn:ignore
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403677
2009-06-30 06:53:17 +00:00
Ryan C. Gordon
6924cd9e8a Moved hardcoding of "/proc/apm" elsewhere.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403676
2009-06-30 06:27:08 +00:00
Ryan C. Gordon
fc45904c3c Linux /proc/apm: handle hex and decimal (and octal!) values.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403675
2009-06-30 06:26:02 +00:00
Ryan C. Gordon
090a6d4f81 Linux /proc/acpi: check for ac_adapter states, other cleanup.
Still not tested, though!

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403674
2009-06-30 05:44:00 +00:00
Ryan C. Gordon
0fef127841 Removed stub for Linux /sys/power processing.
Apparently /sys/power doesn't expose battery information at this time.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403673
2009-06-30 05:27:11 +00:00
Ryan C. Gordon
3bcb033219 Power: First shot at Linux /proc/acpi/battery support.
Untested, not even tried to compile yet.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403672
2009-06-30 03:50:30 +00:00
Bob Pendleton
dad8f05067 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. :-)

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403671
2009-06-29 19:54:43 +00:00
Bob Pendleton
9b4d5550f8 Disabling 64 bit atomics operations until I figure out why they do not link.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403669
2009-06-24 22:24:23 +00:00
Bob Pendleton
bd15ea1fd5 First draft of atomic operations code for GCC and linux.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403668
2009-06-24 20:20:57 +00:00
Bob Pendleton
386dceedb4 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.

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403667
2009-06-24 20:04:08 +00:00
Ryan C. Gordon
3688382625 Added power API and test program to Visual C++ project files.
--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403659
2009-06-17 04:26:19 +00:00