Edward Rudd
e4d34f3219
Fixups to the main Xcode project due to renamed README files and long since removed test files.
2013-05-28 16:26:44 -04:00
Philipp Wiesemann
0122ce66f8
Added deactivated loading of SDL2_net to Java file.
2013-05-30 12:23:36 +02:00
Philipp Wiesemann
1130091307
Fixed recently deleted Ms in READMEs.
2013-05-30 12:15:00 +02:00
Sam Lantinga
028c19b92b
When the window is resized, the viewport is automatically reset.
...
This resolves lots of confusion around resizable windows. Most people don't expect a viewport to be implicitly set when the renderer is created and then not to be reset to the window size if the window is resized.
Added common test command line parameters --logical WxH and --scale N to test the render logical size and scaling APIs.
2013-05-29 03:22:19 -07:00
Sam Lantinga
23f33cb76c
Fixed bug 1622 - SDL_RenderSetViewport with empty SDL_Rect raises wrong error for OpenGL rendering backend
...
It's now legal to set an empty viewport rect - it will prevent any rendering.
Also added an API to query the output size: SDL_GetRendererOutputSize()
2013-05-29 03:07:55 -07:00
Sam Lantinga
f8c9841da0
Credits were truncated in a previous commit.
2013-05-27 21:44:16 -07:00
Sam Lantinga
3b298df3d8
Updated supported platforms
2013-05-27 20:53:19 -07:00
Sam Lantinga
9c6d6e4423
Fixed crash with movaps instruction in SDL_memcpy(), due to unaligned Uint32* cast and -O3 vectorization optimizations with gcc 4.9.0
2013-05-27 16:18:11 -07:00
Sam Lantinga
34b782c94c
Better mingw32-x64 linker flag fix, which doesn't require libtool patch
2013-05-26 22:16:42 -07:00
David Ludwig
95485edebb
WinRT: fixed bug whereby landscape-only apps, as configured via an app's Package.appxmanifest file, would report an incorrect display mode on app init, if the device was in portrait mode
2013-05-26 20:27:13 -04:00
David Ludwig
2b39466c25
WinRT: added code to help debug events related to window-sizing and device-orientation
2013-05-26 19:40:12 -04:00
Sam Lantinga
dd1dfc7c6e
Removed dependency on libgcc_s_sjlj-1.dll when building with mingw64
2013-05-26 16:29:57 -07:00
Sam Lantinga
85f91bdb30
Added a comment to say why C runtime is off by default
2013-05-26 16:08:15 -07:00
Sam Lantinga
9bbe4b2a44
Need to generate aclocal.m4 when rebuilding configure, but we don't need to check it in.
2013-05-26 16:01:40 -07:00
Sam Lantinga
c5701fe360
Don't use the C runtime library on Windows, to avoid C runtime dependencies and manifest issues.
2013-05-26 15:50:20 -07:00
Sam Lantinga
d20e17f345
Fixed Visual Studio build
2013-05-26 14:37:41 -07:00
Sam Lantinga
a2cfccc408
Updated VisualC.html for SDL 2.0
2013-05-26 13:06:54 -07:00
Sam Lantinga
2effff4c7d
Renamed WhatsNew so it can be easily read on Windows
2013-05-26 12:43:03 -07:00
Sam Lantinga
8ea72b2f62
Updated the installation instructions to cover all supported platforms
2013-05-26 12:42:46 -07:00
Sam Lantinga
767c1395d9
Fixed compiling XAudio2 code with mingw64
2013-05-26 12:20:23 -07:00
Sam Lantinga
6642f27c10
Fixed compiler warning
2013-05-26 11:44:03 -07:00
Sam Lantinga
1e9722a016
Don't assume the XAudio2 APIs will never be available
2013-05-26 11:39:19 -07:00
Sam Lantinga
3c3e87d79f
Fixed compile errors building with mingw64
2013-05-26 11:34:04 -07:00
Sam Lantinga
96db5f7b81
Renamed documentation files to .txt and converted them to DOS line endings so they would open properly on all systems.
...
Updated Makefile.in so "make dist" includes everything necessary for release.
2013-05-26 11:06:17 -07:00
Philipp Wiesemann
d06a0935e6
Corrected documentation errors in header file.
2013-05-26 12:30:52 +02:00
Philipp Wiesemann
4edf9290cc
Fixed wrong documentation for haptic implementation.
2013-05-26 12:15:15 +02:00
Philipp Wiesemann
5e4c1f280e
Fixed test description in test suite for standard library.
2013-05-26 12:12:52 +02:00
Philipp Wiesemann
41b30114d5
Changed three similar error messages to contain more context.
2013-05-26 11:54:17 +02:00
Sam Lantinga
e3041182ff
Fixed Windows build
2013-05-24 03:29:31 -07:00
Sam Lantinga
9ab99a4157
Added the beginning of automated tests for the standard C library routines.
...
Implemented more SDL_snprintf format specifiers.
2013-05-24 03:23:21 -07:00
Sam Lantinga
851b726444
Added a newline to OutputDebugString(), fixes output on Visual Studio 2008
2013-05-23 23:27:48 -07:00
Edward Rudd
199a800af5
Only free EventData if it's successfully retrieved.
...
- straight from http://who-t.blogspot.com/2009/07/xi2-and-xlib-cookies.html
- hopefully fixes random crash on some systems
2013-05-23 18:45:14 -04:00
Sam Lantinga
d464d16a8f
Fixed Haiku build issue with missing extension support.
...
The visibility attribute warnings in Haiku gl.h can be fixed by editing gl.h and changing the line:
#elif defined(__GNUC__) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
to
#elif (defined(__GNUC__) && __GNUC__ >= 4) || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
as described in: http://dev.haiku-os.org/ticket/8882
2013-05-21 22:48:50 -07:00
Ryan C. Gordon
a346679caf
Patched to compile with older glext.h that don't have GL_NUM_EXTENSIONS.
2013-05-22 01:36:37 -04:00
Sam Lantinga
971a985707
The Haiku install location fix needs to get into configure
2013-05-21 22:35:13 -07:00
Ryan C. Gordon
a3be5baa21
Use glGetStringi() for extension lookup on OpenGL contexts >= version 3.0.
...
Fixes Bugzilla #1620 .
2013-05-22 01:31:04 -04:00
Sam Lantinga
89efb1821f
Fixed macro line endings after whitespace was fixed
2013-05-21 22:04:14 -07:00
Sam Lantinga
28d1e55d4e
Fixed bug 1534 - SIGSEGV in SDL_ConvertSurface() for certain formats in SDL2
...
Don't assume that 8 bit formats are indexed.
Thanks to Gabriel Jacobo for research and potential patches.
2013-05-21 22:01:18 -07:00
Ryan C. Gordon
723af2b82a
Backed out changeset b69dfd56e1b0
...
This was clearly not the right fix.
2013-05-21 23:35:45 -04:00
Ryan C. Gordon
886e159e92
Attempt to fix Haiku buildbot (and other systems with an old glext.h).
2013-05-21 23:13:52 -04:00
Ryan C. Gordon
0412136a9d
Patched to compile on older Mac OS X devtools (thanks, D B!).
2013-05-21 23:02:16 -04:00
David Ludwig
266edfa1f8
WinRT: added hotplug support for joysticks/game-controllers
2013-05-21 20:08:53 -04:00
Sam Lantinga
0b6d808284
Fixed bug Bug 1817 - Haiku uses wrong default install prefix
...
Axel Dörfler
Currently, the default install target for Haiku is /boot/develop/tools/gnupro. However, this is not the expected install place. Instead, /boot/common should be used.
2013-05-21 00:49:31 -07:00
Sam Lantinga
9f6a52c28a
Fixed bug 1856 - (Patch) More bits for SDL_MouseMotionEvent.state
...
Gerry JJ
The state bitmask in SDL_MouseMotionEvent is stored in an Uint8. Unfortunately this doesn't actually have room for 8 buttons because SDL skips 4 button indices after the third mouse button (at least here on Linux x86-64, probably related to wheel handling?), so it's really just enough to track 4 buttons. For example, on a Logitech MX310 mouse I've got, even though the mouse has 6 buttons total, the left and right side buttons and extra middle button have indexes 8, 9 and 10, and the last two won't fit in the 8 bit button state.
The source of the button state (in SDL_Mouse) is already 32-bit, and the state field in SDL_MouseMotionEvent is 32-bit aligned and followed by three 8-bit padding fields. So simply changing the SDL_MouseMotionEvent state to an Uint32 and removing the padding fields fixes this, and I think it should be binary compatible, at least for little endian.
2013-05-20 23:57:10 -07:00
Sam Lantinga
a05b8e83d9
Fixed bug 1148 - SDL window white upon first appearing
...
To be consistent with other platforms, we'll use black as the background color.
2013-05-20 23:30:08 -07:00
Sam Lantinga
20dee3ebf5
Fixed bug 1113 - SDL_SetEventFilter()'s event deletion process is not safe against intervening event push.
...
This is not completely thread-safe since it's possible for an event to come in and be unfiltered between the flush call and the setting of the new filter, but it's much better than it was.
2013-05-20 23:04:25 -07:00
Sam Lantinga
91acc847ca
Fixed bug 731 - No mechanism to extract the NSView for 3d library
2013-05-20 22:05:49 -07:00
Sam Lantinga
de7dd5fa01
Fixed losing ALT key modifiers on Unity
2013-05-20 12:25:16 -07:00
Sam Lantinga
4d9fee966f
It turns out that GL_ARB_debug_output is really only useful on debug contexts, so for consistency and performance we'll only check and report errors on debug contexts.
...
I added a --gldebug command line option for the test programs to easily test this, and we may want a hint as well to enable OpenGL error checking.
2013-05-20 12:01:31 -07:00
David Ludwig
2ee499e0c3
WinRT: fixed XInput-related linker errors on non-x86 platforms (such as ARM)
2013-05-20 11:09:08 -04:00