Commit Graph

4780 Commits

Author SHA1 Message Date
Sam Lantinga
ed1f29af7d PS3 Linux is no more... 2011-01-19 22:25:40 -08:00
Sam Lantinga
05e196a519 Nobody has stepped up to maintain an svgalib driver. Bye bye! :) 2011-01-19 22:21:31 -08:00
Sam Lantinga
5a4a47d0c1 Clearing the API changes for the 1.3.0 release 2011-01-19 22:20:44 -08:00
Sam Lantinga
8fb4ff28fb Nobody has stepped up to maintain a framebuffer console driver. Bye bye! :) 2011-01-19 22:18:45 -08:00
Sam Lantinga
de5e018177 Removed debug print statements 2011-01-19 19:51:04 -08:00
Sam Lantinga
78c08f9736 Florian Forster to sdl
in SDL 1.3 (revision 5508 from SVN), the method used to calculate the
bits per pixel from a “int format” differ between “SDL_ListModes” (which
always uses the “SDL_BITSPERPIXEL” macro) and “SDL_PixelFormatEnumTo-
Masks” (which uses either “SDL_BITSPERPIXEL” or “SDL_BYTESPERPIXEL * 8”,
depending on the value of “SDL_BYTESPERPIXEL”).

Because the values are later compared in “SDL_ListModes” this may lead
to some valid video modes not being returned. In my case the only mode
returned by “SDL_GetNumDisplayModes” was dismissed and NULL was
returned. (This led to the calling application sticking its head in the
sand.)

The attached patch copies the method used within “SDL_PixelFormatEnumTo-
Masks” to “SDL_ListModes”. This solved the problem for me though I don't
fully understand the method used by “SDL_PixelFormatEnumToMasks”.
2011-01-19 16:06:47 -08:00
Sam Lantinga
c7f4cb45f8 Window move events have the same problem as size events on Windows 2011-01-19 16:02:15 -08:00
Sam Lantinga
4c63689825 Fixed using the native iconv library 2011-01-19 15:28:01 -08:00
Sam Lantinga
fbef2736d9 Fixed test for libiconv 2011-01-19 15:02:11 -08:00
Sam Lantinga
317257b056 Use the debug C runtime for the debug configuration 2011-01-19 13:50:53 -08:00
Sam Lantinga
5b8cfdabf7 Normalized line endings 2011-01-19 13:44:55 -08:00
Sam Lantinga
de31f7c2e6 Raw input is no longer used. Yay! 2011-01-19 13:44:44 -08:00
Sam Lantinga
127b01bc8a The clipboard API was missing from the 2010 project 2011-01-19 13:44:21 -08:00
Sam Lantinga
8018c7aff8 Added post build step to copy SDL and data files into the test projects 2011-01-19 13:07:25 -08:00
Sam Lantinga
b171384544 Added testshape to the Debug configuration 2011-01-19 13:07:06 -08:00
Sam Lantinga
2454e69555 Added post build step to copy SDL and data files into the test projects 2011-01-19 11:35:54 -08:00
Sam Lantinga
802ab4a83d Removed extra space 2011-01-19 11:35:31 -08:00
Sam Lantinga
13ed617751 Added XFlush() so changes happen immediately instead of waiting for the next event loop. 2011-01-19 10:14:11 -08:00
Sam Lantinga
ece7221d0a Greg Jandl to SDL
I *think* the patch below works correctly: sdl-config gets the -march
flag and SDL builds fine. Perhaps there's a better way to get the
-march flag into both CFLAGS and SDL_FLAGS w/o dragging along more
cruft, but adding it to BASE_CFLAGS seemed the best bet to my eyes.
2011-01-19 00:07:43 -08:00
Sam Lantinga
c98373bffe Greg Jandl to SDL
I did some digging, and I think I've found a better solution. By
including some additional .m4 macros in the acinclude directory
(http://www.gnu.org/software/autoconf-archive/ax_check_compiler_flags.html,
http://www.gnu.org/software/autoconf-archive/ax_gcc_archflag.html and
http://www.gnu.org/software/autoconf-archive/ax_gcc_x86_cpuid.html)
then using the patch below (same as previous patch + one line change
to configure.in), SDL will build correctly out of the box.

The arch can then be overridden by --with-gcc-arch=<arch> (most will
probably want to build with i686 there for general distribution) or
--without-gcc-arch, to disable setting the arch all together.

On my Atom netbook, I get -march=PentiumPro by default, which works
great, as does --with-gcc-arch=i686.
2011-01-18 22:40:45 -08:00
Sam Lantinga
9a91680ace Whoops, good catch from Greg Jandl 2011-01-18 22:10:37 -08:00
Sam Lantinga
8fdaded173 Fixed building with the latest iOS SDK (4.2) 2011-01-18 17:23:44 -08:00
Sam Lantinga
001d0cf7a9 Fixed building with the latest iOS SDK (4.2) 2011-01-18 16:55:03 -08:00
Sam Lantinga
ba15b5e9b9 Fixed missing source files in static library target
Fixed building SDL test programs
2011-01-18 16:47:14 -08:00
Sam Lantinga
32ac172d1a Not all MinGW compilers have intrin.h, so we'll only use this with Visual Studio.
That's actually okay, since gcc has the builtin atomic intrinsics. :)
2011-01-18 15:07:53 -08:00
Sam Lantinga
06d2095daf Fixed building with the latest iOS SDK (4.2) 2011-01-18 15:02:59 -08:00
Sam Lantinga
4facc12600 Fixed building with the latest iOS SDK (4.2) 2011-01-18 15:00:56 -08:00
Sam Lantinga
e89ef55e05 Fixed build against 10.4 SDK 2011-01-18 14:57:39 -08:00
Sam Lantinga
5716390ec1 Fixed compiler error with the latest Xcode package 2011-01-18 14:26:30 -08:00
Sam Lantinga
9f1db64d7f Updated the snapshot script for Mercurial 2011-01-18 14:21:10 -08:00
Sam Lantinga
21a62ffeac Michael gave permission to use his test code 2011-01-18 10:57:28 -08:00
Sam Lantinga
1a141df371 SDL_atomic.h is safe to include in the main header now. 2011-01-17 14:08:00 -08:00
Sam Lantinga
2a3a996219 Fixed compiler warnings using Windows intrinsics 2011-01-17 14:07:15 -08:00
Sam Lantinga
b8df61a201 Use compiler intrinsics on Windows 2011-01-17 14:05:43 -08:00
Sam Lantinga
f5bbe15139 Fixed compiler error 2011-01-17 14:05:14 -08:00
Sam Lantinga
b03568822b Fixed compiler errors 2011-01-17 13:54:13 -08:00
Sam Lantinga
f7788bbb12 Use compiler intrinsics, where available 2011-01-17 13:53:31 -08:00
Sam Lantinga
a4445e1512 Use the portable intrinsic 2011-01-17 13:52:40 -08:00
Sam Lantinga
54e9e14daf Added testatomic test project 2011-01-17 13:42:24 -08:00
Sam Lantinga
9017f24006 Minor documentation consistency cleanup 2011-01-17 09:09:15 -08:00
Sam Lantinga
ae5606df0b Fixed compiler warning 2011-01-16 17:48:04 -08:00
Sam Lantinga
aea7e124a9 Fixed compiler warning about symbol redefinition 2011-01-16 17:47:52 -08:00
Sam Lantinga
c94b5b6866 Include windows.h in SDL_atomic.h by default, but don't include the atomic API in SDL.h
This allows all SDL code to take advantage of the atomic intrinsics on Windows, but doesn't cause applications just including SDL.h to pull in windows.h
2011-01-16 17:45:42 -08:00
Sam Lantinga
4c5bf24ecb Don't hose code that isn't expecting a windows include 2011-01-16 15:31:09 -08:00
Sam Lantinga
89d48a0f83 Added native atomic operations for Windows, Mac OS X, and gcc compiler intrinsics.
Changed the CAS return value to bool, so it's efficient with OSAtomicCompareAndSwap32Barrier()
Added an atomic test adapted from code by Michael Davidsaver
2011-01-16 15:16:39 -08:00
Sam Lantinga
38e31e4598 Updated the atomic API for better use cases 2011-01-15 12:41:59 -08:00
Sam Lantinga
890680f51e Added some missing config for the iPhone 2011-01-15 12:34:43 -08:00
Sam Lantinga
4558d7576e Added "mouse" support for the Android touch screen 2011-01-13 18:31:15 -08:00
Sam Lantinga
a80a7c1347 Cleaned up internal accelerometer interface 2011-01-13 18:03:56 -08:00
Sam Lantinga
686f35737f Make sure we shut down the app if SDL_main() returns instead of exiting. 2011-01-13 17:13:00 -08:00