Philipp Wiesemann
cd37485e3c
Changed parameter name for gesture template save functions from "src" to "dst".
2013-11-02 12:07:21 +01:00
Philipp Wiesemann
95bbf5f443
Removed unreachable return statement in gesture source.
2013-11-02 11:51:23 +01:00
Philipp Wiesemann
4e270de15d
Changed function to return -1 through SDL_Error() instead of plain -1.
2013-11-02 11:46:43 +01:00
Philipp Wiesemann
0f8d9995fe
Corrected typo in source comment.
2013-11-02 11:42:00 +01:00
David Ludwig
7cc0951637
WinRT: added support for SDL_HINT_RENDER_SCALE_QUALITY
2013-11-01 22:54:39 -04:00
Gabriel Jacobo
e651ab12b6
Fixes Bug #2191,incorrect test for egl_context validity
...
Thanks David Binderman!
2013-10-31 10:02:21 -03:00
Ryan C. Gordon
804e5799ad
Fixed common test usage string (was "hidpi", should be "highdpi").
2013-10-30 16:39:35 -04:00
Ryan C. Gordon
d36c7363dd
Updated GL version tests for Mac OS X 10.9 ("Mavericks").
...
They changed the name of their GL 3.2 enum, added the GL 4.1 core profile.
2013-10-28 22:43:39 -04:00
David Ludwig
ea12ff9faf
WinRT: added a comment regarding the lack of SHGetFolderPath on WinRT
2013-10-28 15:52:04 -04:00
David Ludwig
3236fc3a9f
WinRT: implemented SDL_GetBasePath and SDL_GetPrefPath
2013-10-28 15:41:22 -04:00
David Ludwig
1704af5b02
WinRT: build fixes, post SDL 2.0.1 update
2013-10-27 23:03:11 -04:00
David Ludwig
69c5d21d7d
WinRT: merged with SDL 2.0.1 codebase
2013-10-27 21:26:46 -04:00
David Ludwig
e64e3d8c27
WinRT: fixed two bugs regarding mouse events
...
The first bug had mouse motion events not getting sent out on non-touch devices, if and when a mouse button wasn't pressed.
The second bug caused virtual mouse motion events to get sent out-of-order on touch devices: the motion event would get sent after the touch occurred, rather than before.
2013-10-27 14:31:57 -04:00
David Ludwig
62c781eaff
WinRT: made the Direct3D 11.x 'Debug Layer' be enable-able in any app via a hint
...
To enable the Debug Layer, set the hint, SDL_HINT_RENDER_DIRECT3D11_DEBUG to '1'.
The Debug Layer will be turned off by default, both in Release and Debug builds (of SDL).
2013-10-25 20:31:43 -04:00
Ryan C. Gordon
609b58e441
Fixed buffer overflow.
2013-10-24 00:00:10 -04:00
Ryan C. Gordon
72de99aed3
Initialize MEMORYSTATUSEX size before GlobalMemoryStatusEx() (thanks, Justin!).
...
Fixes Bugzilla #2177 .
2013-10-23 19:52:14 -04:00
Pierre-Loup A. Griffais
e0771482f6
Fix regression causing crashes when running without a window manager.
2013-10-23 13:43:17 -07:00
Ryan C. Gordon
965a0da901
Moved a SDL_SetError() call elsewhere to avoid triggering it needlessly.
...
Otherwise, the XInput path would always trigger it in a harmless manner.
2013-10-23 15:54:12 -04:00
Ryan C. Gordon
28aa076c8b
SDL_GetPrefPath() now uses the organization on all platforms.
...
Even if that's not the general convention for a given platform.
2013-10-23 00:58:20 -04:00
Sam Lantinga
298d3d627a
Fixed duplicate const warning
2013-10-22 21:54:52 -07:00
Sam Lantinga
2348e426c7
Fixed whitespace
2013-10-21 22:08:56 -07:00
Sam Lantinga
bcf5472d16
Fixed bug 2073 - Mac: window moves unexpectedly when exiting SDL_WINDOW_FULLSCREEN_DESKTOP mode
...
Alex Szpakowski
In Mac OS X, when SDL_SetWindowFullscreen(window, 0) is called on a window which was in SDL_WINDOW_FULLSCREEN_DESKTOP mode, its original size is restored but its position is moved to the bottom of the screen.
I tracked down the issue to these two lines: http://hg.libsdl.org/SDL/file/fdd5cc9e9f90/src/video/cocoa/SDL_cocoawindow.m#l1034
I believe [nswindow setFrameOrigin:rect.origin] implicitly calls [nswindow constrainFrameRect:rect toScreen:screen], which will attempt to constrain the window to the screen, but at that point the window size is still full-screen rather than the restored window size, so the constrainFrameRect function operates on the wrong window size.
https://developer.apple.com/library/mac/documentation/cocoa/reference/applicationkit/classes/NSWindow_Class/Reference/Reference.html#//apple_ref/occ/instm/NSWindow/constrainFrameRect:toScreen :
I resolved the issue by swapping the order of the function calls, like so:
[nswindow setContentSize:rect.size];
[nswindow setFrameOrigin:rect.origin];
2013-10-21 02:37:03 -07:00
Sam Lantinga
b8b9bfbe5b
Fixed some warnings building for 64-bit Windows
2013-10-21 01:16:16 -07:00
Sam Lantinga
11d38d696e
Fixed bug 2015 - surface getting leak in SDLTest_ScreenShot function
...
Nitz 2013-08-06 03:53:41 UTC
In function SDLTest_ScreenShot() surface pointer getting leak while return
2013-10-21 00:30:05 -07:00
Sam Lantinga
80930559a3
Fixed bug 2012 - Algorithm logic getting wrong in ComputeOutCode
...
Nitz
I was going through the SDL_IntersectRectAndLine function and wondered to see the ComputeOutCode function implementation.
The problem in this algo is, x and y axis are getting check with respect to 0, Which is wrong, it should be get checked with respect to rectangle x and y axis.
2013-10-21 00:25:43 -07:00
Sam Lantinga
deb8086b08
Fixed bug 2072 - Make OS X's filesystem calls use -[NSString fileSystemRepresentation]
...
C.W. Betts
The recommended way of getting a file name that POSIX file APIs can open in OS X when using an NSString is -[NSString fileSystemRepresentation]. However, the current filesystem API in hg uses -[NSString UTF8String].
2013-10-21 00:20:27 -07:00
Sam Lantinga
360c3d853a
Better cleanup if OpenGL initialization fails
2013-10-21 00:15:24 -07:00
Sam Lantinga
a503dabe01
Fixed a crash initializing Android touch IDs
2013-10-20 23:23:25 -07:00
Sam Lantinga
f8c11bb955
Fixed the status bar visibility in iOS 7
2013-10-20 23:05:53 -07:00
Sam Lantinga
85c2e2367c
Fixed Y axis inversion on iOS; positive is up, negative is down.
2013-10-20 22:23:09 -07:00
Sam Lantinga
08fa8da77c
Fixed bug 2129 - fix for bug 2121 breaks linking for mingw and throws multiple warnings
...
Andreas Ertelt
The problem in question is caused by changeset 7771 (http://hg.libsdl.org/SDL/rev/5486e579872e / https://bugzilla.libsdl.org/show_bug.cgi?id=2121 )
The redefinition of __inline__ (introduced by the addition of begin_code.h:128's "|| __STRICT_ANSI__") results in mingw's gcc throwing multiple
warning: always_inline function might not be inlinable [-Wattributes]
as well as a whole bunch of redefinitions of mingw internals which break linking of projects including the SDL2 headers.
2013-10-20 21:56:15 -07:00
Sam Lantinga
4ca34ad4a4
Prevent conflicts when linking both SDL2 and SDL2_gfx
2013-10-20 21:34:38 -07:00
Sam Lantinga
aa86e05d21
Fixed windows compile
2013-10-20 20:49:36 -07:00
Sam Lantinga
f5fa492e26
Added a macro SDL_TICKS_PASSED() to correctly compare two 32-bit tick values.
...
Went through the code and used the macro and fixed a couple places that were using incorrect timestamp comparisons.
2013-10-20 20:42:55 -07:00
Ryan C. Gordon
d710399671
Fix some edge cases in XInput haptic timing.
2013-10-20 23:38:19 -04:00
Ryan C. Gordon
dddb878761
Disable Win32 thread naming again. See Bugzilla #2089 .
2013-10-20 23:08:45 -04:00
Ryan C. Gordon
0e699eb5bb
Added SDL_GL_FRAMEBUFFER_SRGB_CAPABLE (thanks, David!).
...
Fixes Bugzilla #1985 .
2013-10-20 21:18:05 -04:00
Ryan C. Gordon
d1bde399af
Backed out changeset 737771c47c6f, done testing Buildbot changes.
2013-10-20 20:24:00 -04:00
Ryan C. Gordon
df3680846b
Intentionally breaking Windows and Raspberry Pi builds to test Buildbot change.
2013-10-20 20:02:02 -04:00
Ryan C. Gordon
f28c7fe8a5
Backed out hg changeset add2dbe99fe2. REFGUID is apparently a const type.
2013-10-20 16:03:11 -04:00
Ryan C. Gordon
c521ae84bc
Patched to compile on non-C99 Microsoft compiler.
2013-10-20 16:02:24 -04:00
Ryan C. Gordon
a614f18666
Patched to compile on Windows.
2013-10-20 16:01:10 -04:00
Ryan C. Gordon
b285b60092
Allow XInput haptics to run for SDL_HAPTIC_INFINITY time (thanks, Mitchell!).
...
Partially fixes Bugzilla #2126 .
2013-10-20 15:55:47 -04:00
Ryan C. Gordon
6e1169ddc2
Fixed goofy logic in haptic device comparison code.
...
Mitchell Keith Bloch did the research on this bug, and came up with a slightly
different patch than this.
Partially fixes Bugzilla #2126 .
2013-10-20 15:49:52 -04:00
Ryan C. Gordon
54dce3f53a
Don't bother calling SDL_SYS_HapticEffectType() at all for XInput devices.
2013-10-20 15:45:48 -04:00
Ryan C. Gordon
5e74299a83
Fix adding of XInput devices (thanks, Mitchell!)
...
Partially fixes Bugzilla #2126 .
2013-10-20 15:40:20 -04:00
Sam Lantinga
ade13fd741
It's okay to quit things more than once.
2013-10-20 10:39:26 -07:00
Sam Lantinga
20f5167d27
Use vertex arrays for drawing points in addition to lines
2013-10-20 10:35:51 -07:00
Sam Lantinga
82b8e6df87
Fixed bug 2158 - Pixel missing in SDL_RenderDrawLines
...
Sean McKean
I am running Ubuntu 12.04 (GL version 1.4 Mesa 8.0.4) , and on drawing a set of lines through the renderer through SDL_RenderDrawLines() (looped or not) or SDL_RenderDrawRect() I notice a pixel missing. For RenderDrawLines() it seems to be the second point in the sequence; for RenderDrawRect() it is the lower-right. This can be fixed by specifying SDL_RenderDrawPoint(s), but wouldn't it be easier to specify each pixel in a GL_POINTS glBegin/End loop in the OpenGL code, just to make sure?
I also ran the same program on Android; the rendering seemed to be correct, which uses glDrawArrays.
2013-10-20 10:10:14 -07:00
Sam Lantinga
a25b51923a
Fixed compiling with the new X11 symbol wrapping
2013-10-20 09:58:37 -07:00