Sam Lantinga
5c01c4797c
SDL 1.3 requires a 64-bit type for the platform.
2011-03-25 13:47:49 -07:00
Sam Lantinga
a9d41506c3
If we leave the default SDL_config.h in place, it'll override the one generated by configure when building from a different directory. Argh...
2011-03-12 13:28:56 -08:00
Sam Lantinga
0f3c139a87
We don't want to remove SDL_config.h since it's in source control now.
2011-03-11 14:24:35 -08:00
Sam Lantinga
3b97514dce
Added support for the Xcursor library for color cursors
2011-03-11 13:56:53 -08:00
Sam Lantinga
5137fef264
Fixed the libraries linked with Visual Studio 2010, the msimg library isn't needed anymore.
2011-03-07 22:03:11 -08:00
Sam Lantinga
6053ae5234
OSF isn't supported anymore.
2011-02-28 09:09:13 -08:00
Sam Lantinga
303287a180
IRIX is not supported anymore. :)
2011-02-28 09:06:29 -08:00
Sam Lantinga
73b501d88c
Dynamically load the Xinerama and xf86vmode extensions
...
This fixes a few bugs with different distributions:
http://bugs.freedesktop.org/show_bug.cgi?id=17431
http://bugs.gentoo.org/show_bug.cgi?id=246177
2011-02-28 09:01:53 -08:00
Sam Lantinga
e4a0db291e
Re-added the 3DNow! and AltiVec instruction support.
2011-02-22 21:44:36 -08:00
Sam Lantinga
e81d8928b6
Added a better way to include build rules in the Makefile
...
Cleaned up dependencies on generating SDL_revision.h
Fixed 'make install' if you are not building from a Mercurial repository
2011-02-18 11:19:34 -08:00
Sam Lantinga
86ccb87283
Fixed bug #1064 (configure still has --enable-stdio-redirect option)
2011-02-16 03:59:39 -08:00
Sam Lantinga
0314fd4e0f
Updated CPU detection code for SSE3 and SSE4 and removed obsolete 3DNow! and Altivec support.
2011-02-11 14:51:04 -08:00
Sam Lantinga
7133afac5f
Made it possible to disable the rendering subsystem with configure --disable-render
2011-02-08 10:04:09 -08:00
Sam Lantinga
8f205278b1
It's now possible to disable the fast atomic operations, at a huge performance penalty.
2011-02-07 22:57:33 -08:00
Sam Lantinga
8b3eb38df2
Updated the DirectFB support, from Couriersud
...
attached is a working directfb driver diff which works with the current
changes. There are a number of changes around it as well, e.g.
configure.in.
The directfb renderdriver right now still depends on a some "includes"
from src/video/directfb. That's why it is not yet moved to the new
render folder.
2011-02-05 16:07:10 -08:00
Sam Lantinga
31f1dceb0c
Removed a bunch of X11 support that we no longer need.
2011-02-04 19:18:08 -08:00
Sam Lantinga
5897ef7d95
Moved the rendering code out to a separate directory in the hope that it can someday be completely decoupled from the rest of the library and be expanded to an awesome 2D on 3D library.
...
--HG--
rename : src/video/windows/SDL_d3drender.c => src/render/direct3d/SDL_d3drender.c
rename : src/video/SDL_renderer_gl.c => src/render/opengl/SDL_renderer_gl.c
rename : src/video/SDL_renderer_gles.c => src/render/opengles/SDL_renderer_gles.c
rename : src/video/SDL_renderer_sw.c => src/render/software/SDL_renderer_sw.c
2011-02-02 14:34:54 -08:00
Sam Lantinga
a47948aab0
Nobody is currently maintaining the QNX code, so removing it for now.
2011-02-01 21:40:03 -08:00
Sam Lantinga
372693d86f
Removed more partially functional renderers
...
--HG--
extra : rebase_source : d00f0590e133604070f978762a6728b4afde02ca
2011-01-31 22:53:45 -08:00
Sam Lantinga
9c12618379
Removed partially functional renderers
...
--HG--
extra : rebase_source : 3fc2560c02393bf9e7c46360fc24f2585c9409be
2011-01-31 22:21:29 -08:00
Sam Lantinga
be54c8a0d5
This patch fixes the issue of configure generating broken Makefile
...
when .cc files are used due to bad sed substitution on multiple passes:
$(objects)/SDL_BeApp.lo:
$(objects)/SDL_BeApp.lo: ./src/main/beos/SDL_BeApp.c
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@c
$(LIBTOOL) --mode=compile $(CC) $(CFLAGS) $(EXTRA_CFLAGS) -c $< -o $@
Signed-off-by: François Revol
2011-01-27 14:54:20 -08:00
Sam Lantinga
d06966d7f2
Nobody is maintaining RISC OS code, so I'm removing it for now.
2011-01-27 00:06:36 -08:00
Sam Lantinga
29e0bf97e0
Improvements based on feedback from Anthony Williams
2011-01-25 17:40:06 -08:00
Sam Lantinga
7327ef6bb9
Fixed cross-compiling for Windows
2011-01-24 21:41:36 -08:00
Sam Lantinga
daecbfdc17
HAVE_GCC_ATOMICS covers the test and set
2011-01-21 21:45:55 -08:00
Sam Lantinga
2c31531800
Separated out the minimum functionality that we need from gcc for our spinlock fallback.
2011-01-21 21:42:04 -08:00
Sam Lantinga
68afef61c9
Fixed atomic intrinsic test
2011-01-21 21:35:43 -08:00
Sam Lantinga
a03da6f07a
Fixed bug #945
...
The configure script was breaking the substitutions into multiple fragments, breaking them across the substitution for the build rules. This of course totally hosed the process.
I switched to using a more modern usage of AC_OUTPUT and added a post-process step that appends the build rules to the Makefile.
2011-01-21 12:43:25 -08:00
Sam Lantinga
9d25ba272a
Fixed bug #925
...
Changed "win32" to "windows"
--HG--
rename : include/SDL_config_win32.h => include/SDL_config_windows.h
rename : src/events/scancodes_win32.h => src/events/scancodes_windows.h
rename : src/haptic/win32/SDL_syshaptic.c => src/haptic/windows/SDL_syshaptic.c
rename : src/joystick/win32/SDL_dxjoystick.c => src/joystick/windows/SDL_dxjoystick.c
rename : src/joystick/win32/SDL_dxjoystick_c.h => src/joystick/windows/SDL_dxjoystick_c.h
rename : src/joystick/win32/SDL_mmjoystick.c => src/joystick/windows/SDL_mmjoystick.c
rename : src/loadso/win32/SDL_sysloadso.c => src/loadso/windows/SDL_sysloadso.c
rename : src/main/win32/SDL_win32_main.c => src/main/windows/SDL_windows_main.c
rename : src/main/win32/version.rc => src/main/windows/version.rc
rename : src/thread/win32/SDL_sysmutex.c => src/thread/windows/SDL_sysmutex.c
rename : src/thread/win32/SDL_syssem.c => src/thread/windows/SDL_syssem.c
rename : src/thread/win32/SDL_systhread.c => src/thread/windows/SDL_systhread.c
rename : src/thread/win32/SDL_systhread_c.h => src/thread/windows/SDL_systhread_c.h
rename : src/thread/win32/win_ce_semaphore.c => src/thread/windows/win_ce_semaphore.c
rename : src/thread/win32/win_ce_semaphore.h => src/thread/windows/win_ce_semaphore.h
rename : src/timer/win32/SDL_systimer.c => src/timer/windows/SDL_systimer.c
rename : src/video/win32/SDL_ceddrawrender.c => src/video/windows/SDL_ceddrawrender.c
rename : src/video/win32/SDL_ceddrawrender.h => src/video/windows/SDL_ceddrawrender.h
rename : src/video/win32/SDL_d3drender.c => src/video/windows/SDL_d3drender.c
rename : src/video/win32/SDL_d3drender.h => src/video/windows/SDL_d3drender.h
rename : src/video/win32/SDL_gapirender.c => src/video/windows/SDL_gapirender.c
rename : src/video/win32/SDL_gapirender.h => src/video/windows/SDL_gapirender.h
rename : src/video/win32/SDL_gapirender_c.h => src/video/windows/SDL_gapirender_c.h
rename : src/video/win32/SDL_gdirender.c => src/video/windows/SDL_gdirender.c
rename : src/video/win32/SDL_gdirender.h => src/video/windows/SDL_gdirender.h
rename : src/video/win32/SDL_msctf.h => src/video/windows/SDL_msctf.h
rename : src/video/win32/SDL_vkeys.h => src/video/windows/SDL_vkeys.h
rename : src/video/win32/SDL_win32clipboard.c => src/video/windows/SDL_windowsclipboard.c
rename : src/video/win32/SDL_win32clipboard.h => src/video/windows/SDL_windowsclipboard.h
rename : src/video/win32/SDL_win32events.c => src/video/windows/SDL_windowsevents.c
rename : src/video/win32/SDL_win32events.h => src/video/windows/SDL_windowsevents.h
rename : src/video/win32/SDL_win32gamma.c => src/video/windows/SDL_windowsgamma.c
rename : src/video/win32/SDL_win32gamma.h => src/video/windows/SDL_windowsgamma.h
rename : src/video/win32/SDL_win32keyboard.c => src/video/windows/SDL_windowskeyboard.c
rename : src/video/win32/SDL_win32keyboard.h => src/video/windows/SDL_windowskeyboard.h
rename : src/video/win32/SDL_win32modes.c => src/video/windows/SDL_windowsmodes.c
rename : src/video/win32/SDL_win32modes.h => src/video/windows/SDL_windowsmodes.h
rename : src/video/win32/SDL_win32mouse.c => src/video/windows/SDL_windowsmouse.c
rename : src/video/win32/SDL_win32mouse.h => src/video/windows/SDL_windowsmouse.h
rename : src/video/win32/SDL_win32opengl.c => src/video/windows/SDL_windowsopengl.c
rename : src/video/win32/SDL_win32opengl.h => src/video/windows/SDL_windowsopengl.h
rename : src/video/win32/SDL_win32shape.c => src/video/windows/SDL_windowsshape.c
rename : src/video/win32/SDL_win32shape.h => src/video/windows/SDL_windowsshape.h
rename : src/video/win32/SDL_win32video.c => src/video/windows/SDL_windowsvideo.c
rename : src/video/win32/SDL_win32video.h => src/video/windows/SDL_windowsvideo.h
rename : src/video/win32/SDL_win32window.c => src/video/windows/SDL_windowswindow.c
rename : src/video/win32/SDL_win32window.h => src/video/windows/SDL_windowswindow.h
rename : src/video/win32/wmmsg.h => src/video/windows/wmmsg.h
2011-01-20 18:04:05 -08:00
Sam Lantinga
6642f38cf1
SDL doesn't depend on GLU, and overwhelming feedback from the mailing list is that people don't want it included in SDL_opengl.h
2011-01-19 22:55:51 -08:00
Sam Lantinga
c4d74517e7
PS3 Linux is no more...
2011-01-19 22:25:40 -08:00
Sam Lantinga
008911fd8a
Nobody has stepped up to maintain an svgalib driver. Bye bye! :)
2011-01-19 22:21:31 -08:00
Sam Lantinga
90a214c4e9
Nobody has stepped up to maintain a framebuffer console driver. Bye bye! :)
2011-01-19 22:18:45 -08:00
Sam Lantinga
f69bce6999
Fixed using the native iconv library
2011-01-19 15:28:01 -08:00
Sam Lantinga
7c85ff217e
Fixed test for libiconv
2011-01-19 15:02:11 -08:00
Sam Lantinga
7c00f79cb1
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
b3dd448c5c
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
b0e0f61c7e
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
1bc8fe69ce
Updated the atomic API for better use cases
2011-01-15 12:41:59 -08:00
Sam Lantinga
124315bff4
I am using SDL 1.3 on FreeBSD. I found two problems.
...
(1) SDL_atomic dummy version in SDL 1.3 is not used.
Because src/atomic/dummy/*.c are not used.
(2) Typo in src/joystick/bsd/SDL_sysjoystick.c.
Thanks,
IWATSUKI Hiroyuki
2011-01-01 19:50:50 -08:00
Sam Lantinga
44eb5de93d
Fixed compiling with mingw32/64
2010-09-19 16:46:56 -07:00
Sam Lantinga
d8303d3f7a
Added atan implementation from uClibc
2010-08-29 16:51:48 -07:00
Sam Lantinga
21e184b0bb
Added atan2 implementation from uClibc
2010-08-29 16:05:34 -07:00
Sam Lantinga
7c463932c2
Merged Eli's Google Summer of Code work from SDL-gsoc2010-shaped_windows
...
--HG--
rename : VisualC/SDL.sln => VisualC/SDL_VS2005.sln
2010-08-22 13:45:56 -07:00
Sam Lantinga
238acbd53d
Merged Jim's Google Summer of Code work from SDL-gsoc2010_gesture
2010-08-22 12:07:55 -07:00
Jim Grandpre
a4c4851398
Fixed some Gesture bugs
2010-08-02 00:14:53 -04:00
Sam Lantinga
4f5f86477a
For consistency, swapped line order
2010-07-28 22:24:13 -07:00
Sam Lantinga
dc048bcb73
Added dynamic loading of XFixes and XDamage on Mac OS X
2010-07-28 22:22:08 -07:00
Sam Lantinga
d8e7cebd11
Merged Sunny's XRender changes from SDL-gsoc2010_xrender
2010-07-28 00:54:23 -07:00
Sam Lantinga
8d14ec12cc
Andrey A.
...
I made a video driver GAPI/RAW for WinCE (SDL-1.3).
RAW mode has a priority, and also, GAPI mode works with environment
"SDL_VIDEO_RENDERER=gapi" and for RAW mode "SDL_VIDEO_RENDERER=raw".
I checked the work on the screens of VGA, WVGA, QVGA, WQVGA, HVGA,
+ tested all modes with WindowsMobile Emulator.
Also, correctly draws the pointer position and the scale of the pointer
for VGA/WVGA modes,
correctly draws top left position for DM orientation screen, and
portrait/landscape/square geometry the screen also correct.
Also, I added a small fix for GDI fullscreen mode.
Patch for latest revision SDL-1.3 in an attachment.
Also added small path for mingw32ce build.
2010-07-27 21:31:28 -07:00