Ryan C. Gordon
c4b7e485af
docs: README.md points to Discourse instead of the mailing list now.
2021-02-18 11:10:20 -05:00
Ryan C. Gordon
abe2c0f1b1
license: Fixed references to COPYING.txt that are now LICENSE.txt.
...
Fixes #4108
2021-02-18 11:07:26 -05:00
Ryan C. Gordon
a6388cf2ca
Add the usual "vi" comment to the end of pre-push-hook.
2021-02-13 23:02:26 -05:00
Ryan C. Gordon
0e9fd0f8bb
Added a script that can be used to show commit URLs during a git push.
...
Just symlink/copy it to .git/hooks/pre-push and make sure it's executable!
2021-02-12 17:12:56 -05:00
Ryan C. Gordon
65fbf36c9e
Cleaned up a few more Bugzilla mentions.
2021-02-12 14:46:49 -05:00
Ryan C. Gordon
60a99b0b59
BUGS.txt now points to GitHub Issues instead of bugzilla.libsdl.org.
2021-02-12 14:41:11 -05:00
Ryan C. Gordon
4ff51d29c3
Deprecate SDL_GetRevisionNumber and update things for git instead of hg.
...
Fixes #4063
2021-02-12 14:31:38 -05:00
Ryan C. Gordon
f9046b4cab
We're in Git now! Updated docs.
2021-02-11 14:39:08 -08:00
Ryan C. Gordon
b99543b682
opengl: More work on making line drawing match software renderer.
2021-01-11 20:40:11 -05:00
Ryan C. Gordon
eaa53a1979
joystick: On Linux, don't try to close an invalid inotify file descriptor.
2020-11-23 22:16:07 -05:00
Ryan C. Gordon
5c9577476f
joystick: Fix up Linux joystick code to (mostly) compile on FreeBSD.
2020-11-23 22:14:22 -05:00
Ryan C. Gordon
0ff5d55a07
x11: Don't try to grab the pointer on an unmapped window (thanks, Lee!)
...
Fixes Bugzilla #5352 .
2020-11-23 21:07:28 -05:00
Ryan C. Gordon
335cfa107b
x11: Don't crash if a messagebox has a NULL title string.
...
Fixes Bugzilla #5253 .
2020-11-18 11:24:08 -05:00
Ryan C. Gordon
55e59a4f33
crc32: Fixed include path.
2020-11-16 18:48:13 -05:00
Ryan C. Gordon
bee8db3b04
config: Make sure HAVE_TRUNC and HAVE_TRUNCF are defined as appropriate.
...
The configure/cmake scripts were checking for these functions but we didn't
have the SDL_config.h.* pieces in place. The other config headers are best
guesses.
2020-11-14 02:16:41 -05:00
Ryan C. Gordon
7b5a0a9f97
uikit: Don't implement main() twice for iOS static libs.
...
I think this was a leftover from before the two Xcode projects were merged.
2020-11-10 13:12:10 -05:00
Ryan C. Gordon
940419b0a6
uikit: Fixed a typo in a comment.
2020-11-10 13:09:59 -05:00
Ryan C. Gordon
c3a32605f8
testvulkan: Patched to compile with SDL's internal Vulkan headers.
2020-11-09 04:55:15 -05:00
Ryan C. Gordon
0e4ce84801
opengl: Make diagonal lines match the software renderer.
...
OpenGL leaves the final line segment open, SDL's software renderer does not,
so we need a tiny bit of trigonometry here to move one more pixel in the right
direction.
2020-11-08 20:57:17 -05:00
Ryan C. Gordon
da49f79500
opengles: use glDrawArrays() correctly with GL_LINE_STRIP.
2020-11-08 19:56:12 -05:00
Ryan C. Gordon
de6d0ac55a
uikit: Patched to compile on older iOS SDKs.
2020-11-08 18:11:42 -05:00
Ryan C. Gordon
93a2c58c7e
opengl: Use GL_LINE_STRIP instead of breaking down into seperate GL_LINES.
...
Surely GL drivers have improved in the last seven years. I hope...?
2020-11-08 12:37:09 -05:00
Ryan C. Gordon
731a5d1c53
metal: Fix line drawing, again.
2020-11-08 03:18:05 -05:00
Ryan C. Gordon
1b8dee7caf
coreaudio: Remove unnecessary include of CoreServices.h
2020-10-31 11:32:40 -04:00
Ryan C. Gordon
010d5fba93
kmsdrm: Make this build with significantly older system libraries.
...
This allows one to build Raspberry Pi versions on an ancient version of
Raspbian and get both the KMSDRM and RPI video targets built into SDL, giving
maximum binary compatibility from linking against an older glibc, etc, but
also making one library that can access video on all RPi models and OS
releases.
2020-10-26 09:49:09 -04:00
Ryan C. Gordon
ba36eb0437
metal: Make line drawing match software renderer.
...
Partially fixes Bugzilla #2711 .
2020-10-21 00:03:33 -04:00
Ryan C. Gordon
c33f808354
render: Restoring line rendering fixes that were previously put on hold.
...
(Backed out hg changeset 7a4240daba46)
2020-10-20 11:12:49 -04:00
Ryan C. Gordon
b79832ba11
cocoa: Cut and paste from HTML strikes again!
2020-10-08 21:11:09 -04:00
Ryan C. Gordon
061256a3b3
metal: Clear the framebuffer if presenting without any other operations.
2020-10-07 14:45:24 -04:00
Ryan C. Gordon
003a16980c
wav: Make sure the data size is a multiple of blockalign, not an exact match.
...
I _think_ this is a right thing to do; it fixes a .wav file I have here that
has blockalign==2 when channels==2 and bitspersample==16, which otherwise
would fail.
2020-10-06 11:07:50 -04:00
Ryan C. Gordon
4627426994
url: WinRT actually works now (and has been tested, hooray!).
2020-10-06 00:42:17 -04:00
Ryan C. Gordon
fc05a696ad
url: Attempt #23235 at WinRT support...
2020-10-05 18:08:58 -04:00
Ryan C. Gordon
02addf135d
url: Another attempt at WinRT implementation.
2020-10-05 18:01:47 -04:00
Ryan C. Gordon
6c6d2bdd35
url: Build WinRT-specific code as C++/CX instead of plain C++.
2020-10-05 16:25:48 -04:00
Ryan C. Gordon
7bec9df11a
url: Add to Xcode project files, iOS/mac fixes.
2020-10-05 16:10:10 -04:00
Ryan C. Gordon
57e3003d3f
url: Attempt at WinRT support.
2020-10-05 15:47:47 -04:00
Ryan C. Gordon
566479c8ef
url: ShellExecuteW returns an HINSTANCE, so deal with that more correctly.
2020-10-05 15:37:37 -04:00
Ryan C. Gordon
b7b2995fbe
url: Added to Visual Studio project files.
2020-10-05 15:27:32 -04:00
Ryan C. Gordon
ee56090d3d
url: Cleanups and compiler warning fixes.
2020-10-05 15:03:44 -04:00
Ryan C. Gordon
cc158f2983
url: removed "extern" from function declaration.
2020-10-05 14:36:37 -04:00
Ryan C. Gordon
a3802cc533
url: Patched to compile on C89 compilers.
2020-10-05 14:30:33 -04:00
Ryan C. Gordon
0099e38a9a
url: More win32 fixes.
2020-10-05 14:21:03 -04:00
Ryan C. Gordon
3fe5ce7b9a
url: Patched to compile on OS/2.
2020-10-05 14:08:45 -04:00
Ryan C. Gordon
1f4fecc5c1
url: Patched to compile on Windows.
2020-10-05 14:07:32 -04:00
Ryan C. Gordon
777d0f19f8
url: patched to compile on macOS.
2020-10-05 14:06:25 -04:00
Ryan C. Gordon
d068d05aa5
url: Make sure Haiku's C++ implementation is flagged as 'extern "C"'
2020-10-05 14:01:08 -04:00
Ryan C. Gordon
bf9fcb539a
url: The function is "SDL_Unsupported" not "SDL_Unimplemented"
2020-10-05 14:00:08 -04:00
Ryan C. Gordon
2d82cf78e1
url: put the Android bits in core/android
2020-10-05 13:59:03 -04:00
Ryan C. Gordon
efd665e2c7
Backed out changeset a43cb4e54949
...
Trying this a different way.
2020-10-05 13:56:45 -04:00
Ryan C. Gordon
913aa610b5
url: Include SDL_misc.h to get public function declaration.
2020-10-05 13:53:15 -04:00
Ryan C. Gordon
5f68812249
url: patched to compile on Android.
2020-10-05 13:52:52 -04:00
Ryan C. Gordon
84f1b95008
url: fixed wrong include.
2020-10-05 13:39:39 -04:00
Ryan C. Gordon
77c9d73b63
Removed SDL_AndroidOpenURL, added SDL_OpenURL.
...
Still needs to be wired into Xcode and Visual Studio projects.
2020-10-05 11:30:33 -04:00
Ryan C. Gordon
7ef188a1fb
jack: Fixed memory leak on device close.
2020-09-19 14:01:57 -04:00
Ryan C. Gordon
3c6004feb7
kmsdrm: Choose how to swap buffers based on EGL extension availability.
2020-09-10 15:07:23 -04:00
Ryan C. Gordon
c7e761f872
kmsdrm: Patched to compile if EGL headers lack EGL_ANDROID_native_fence_sync.
2020-09-10 15:05:55 -04:00
Ryan C. Gordon
224aa45b59
kmsdrm: Implement GL_DefaultProfileConfig for Raspberry Pi compatibility.
...
If we think this might be a Raspberry Pi device, default to ES2. Otherwise,
accept SDL's higher-level defaults.
2020-09-10 15:04:35 -04:00
Ryan C. Gordon
092162ede7
video: Set up default before calling GL_DefaultProfileConfig().
...
This way, the implementation can opt to do nothing to accept SDL's defaults.
2020-09-10 15:02:51 -04:00
Ryan C. Gordon
e758dd53dc
egl: Make SDL_EGL_HasExtension() available outside of SDL_egl.c.
2020-09-10 15:02:00 -04:00
Ryan C. Gordon
a720d1a294
render: fixes to how we convert touch events for logical scaling.
...
We now handle HiDPI correctly, and touches are clamped to the viewport. So
if you are rendering to a logical 640x480 in a 720p window, and touch the
letterboxing at point (640,700), it will report the touch at (0.5,1.0) instead
of outside the documented range.
2020-08-09 00:55:39 -04:00
Ryan C. Gordon
ea171c0564
winrt: Another attempt at getting this to compile.
...
IntPtr isn't a POD type like I thought, so hopefully we can just construct
one that works out? C++/CX is so weird.
2020-08-01 18:58:42 -04:00
Ryan C. Gordon
282e4c65bf
winrt: Patched to compile...?
...
Microsoft's C++/CX is weird, no idea if this will actually fix it. :/
2020-07-31 19:42:23 -04:00
Ryan C. Gordon
e410b34f92
stdlib: Corrected implementation of SDL_wcsncmp.
...
It was a copy/paste of SDL_strcmp, apparently, not SDL_strncmp, so it ignored
the maxlen parameter.
Thanks to Jack Powell for pointing this out!
2020-07-24 22:24:03 -04:00
Ryan C. Gordon
b7a4fdd318
metal: Make sure we have a command buffer available before trying to present.
...
This fixes a case where you render to the backbuffer, then render to a render
target, set the current target back to the backbuffer, and then present
without drawing anything else; in this circumstance, the Present command
would never happen.
Fixes Bugzilla #5011 .
2020-07-17 11:16:35 -04:00
Ryan C. Gordon
b5affd12e6
Patched to compile.
2020-07-16 13:28:59 -04:00
Ryan C. Gordon
3b38e61a7d
winrt: Fix casting a pointer to int.
...
Fixes Bugzilla #5202 .
2020-07-16 13:25:50 -04:00
Ryan C. Gordon
8babda2c20
egl: SDL_EGL_LoadLibaryOnly() shouldn't set _this->gl_config.driver_loaded = 1
...
This is handled in in the higher-level SDL_GL_LoadLibrary().
All uses of SDL_EGL_LoadLibrary (which calls the Only version) are just
target-specific wrappers for their own GL_LoadLibrary hook, with two
exceptions which now handle driver_loaded correctly (although it's
questionable if these init-if-no-one-did-it-correctly-already code blocks
should exist at all, fwiw).
Fixes Bugzilla #5190 .
2020-07-16 13:18:19 -04:00
Ryan C. Gordon
af71510cca
assert: Implement SDL_TriggerBreakpoint for Apple ARM hardware.
2020-07-16 04:43:08 -04:00
Ryan C. Gordon
45f5eb0615
configure: On Apple platforms, only exclude Vulkan on x86.
...
This catches both x86-64 and ARM devices.
2020-07-16 04:37:14 -04:00
Ryan C. Gordon
6aec6da4c3
stdinc: Let Clang static analysis see more C runtime functions.
...
For systems without strlcpy and strlcat, just declare them as if they exist;
the analyzer possibly still knows the details of these functions and can
utilize that in its analysis.
Most of this patch was from meyraud705 at gmail and Martin Gerhardy. Thanks!
Fixes Bugzilla #5163 .
2020-06-28 17:45:07 -04:00
Ryan C. Gordon
0e98040d43
joystick: Linux joysticks now recover better from dropped events.
...
Fixes Bugzilla #4830 .
2020-06-28 16:23:05 -04:00
Ryan C. Gordon
3b71ebecd6
configure: Accidentally deleted a ')'
...
Sorry!
2020-06-27 02:38:13 -04:00
Ryan C. Gordon
e294639a6d
cmake: Fix Metal detection on macOS/iOS.
...
Apparently the "-x objective-c" made it down to the linker, who then treats
the .o file as Objective-C source code. Apparently the -ObjC argument does
the same thing but gets ignored by the linker.
Fixes Bugzilla #4988 .
2020-06-27 02:00:58 -04:00
Ryan C. Gordon
363fd52b41
configure/cmake: Disable ARM SIMD and NEON by default.
...
It's buggy at the moment.
2020-06-26 23:30:59 -04:00
Ryan C. Gordon
694fea8ad8
video: Make SDL_CreateWindow use SDL_Init(SDL_INIT_VIDEO), not SDL_VideoInit.
...
Otherwise, the video subsystem won't deinitialize during SDL_Quit().
Fixes Bugzilla #5067 .
2020-06-26 21:37:29 -04:00
Ryan C. Gordon
50fd0dd143
test: testspriteminimal wasn't calling SDL_Quit() on exit.
2020-06-26 21:35:54 -04:00
Ryan C. Gordon
1947ca7028
video: Changed SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS to default to FALSE.
...
Fixes Bugzilla #5106 . (and probably many others, too!)
2020-06-26 20:16:43 -04:00
Ryan C. Gordon
21482c1582
cmake: Bump minimum required CMake to 3.0.0 and mark link libraries PRIVATE.
...
Fixes Bugzilla #2992 .
2020-06-26 20:11:32 -04:00
Ryan C. Gordon
d955d63b03
cmake: Build Linux-specific files like the configure script does.
...
Otherwise we unconditionally compile things we shouldn't.
Fixes Bugzilla #5175 .
2020-06-26 17:42:30 -04:00
Ryan C. Gordon
dd753ce7e3
cmake: Fix building with -DSDL_POWER=Off
...
Fixes Bugzilla #5193 .
2020-06-26 15:04:57 -04:00
Ryan C. Gordon
60435712f2
video: Set window->surface NULL after freeing it.
...
Otherwise, when SDL_CreateWindowFramebuffer() is called again, it will return
the free'd surface instead of creating a new one.
2020-06-03 16:42:19 -04:00
Ryan C. Gordon
aa259ed52d
wayland: Changed output removal in handle_surface_leave()
...
No longer needs an extra malloc, handles unexpected cases like the same
output being listed twice.
2020-05-28 15:18:41 -04:00
Ryan C. Gordon
ce7ae4ec8d
wayland: Move buffer copy into mime_data_list_add()
...
It makes it clearer who owns the memory, and more reasonable to free it on
failure in the creating function.
(and, of course, pacifies static analysis.)
2020-05-28 14:57:10 -04:00
Ryan C. Gordon
22da9d4d77
wayland: assert that mmap() didn't return NULL.
...
In practice, it never _would_, but in theory it _might_, so this assertion
tells the static analyzer not to worry about it.
2020-05-28 14:47:55 -04:00
Ryan C. Gordon
600a2fc7c3
locale: Removed unused variable.
2020-05-21 04:01:37 -04:00
Ryan C. Gordon
a299fdd789
sensor: Fixed compiler warnings on mingw64.
2020-05-21 03:52:48 -04:00
Ryan C. Gordon
ba11122ea0
locale: Fixed compiler warning on Visual Studio.
2020-05-21 03:48:56 -04:00
Ryan C. Gordon
b4e76b58e7
sensor: Fix overaggressive search/replace. :)
2020-05-20 17:32:23 -04:00
Ryan C. Gordon
27c38eb22e
sensor: Correct fix for redefinition of various symbols.
2020-05-20 17:22:52 -04:00
Ryan C. Gordon
5fe34a4079
hidapi: Fix compiler warning.
2020-05-20 17:01:25 -04:00
Ryan C. Gordon
c9d358bce9
sensor: Fix build on various Windows compilers with various predefinitions.
2020-05-20 16:59:35 -04:00
Ryan C. Gordon
68777406e5
windows: Fix calls to CoCreateInstance() so last parameter is a LPVOID *.
2020-05-20 16:58:33 -04:00
Ryan C. Gordon
539125b895
locale: Fixed compiler warning on WinRT.
2020-05-20 16:43:02 -04:00
Ryan C. Gordon
8bd3b2c801
configure: fix fcitx tests.
...
Otherwise Unix systems without D-Bus support will attempt to compile sources
they can't handle.
2020-05-20 16:34:19 -04:00
Ryan C. Gordon
d66b73666d
locale: Patched to compile on Windows Phone.
2020-05-20 16:15:14 -04:00
Ryan C. Gordon
a5c654d5c3
configure: Just don't do the -idirafter on QNX.
...
The compiler understands it, but the "qcc" compiler driver doesn't, and the
standard Khronos headers upset QNX anyhow, since they try to include X11
headers in the __unix__ section.
2020-05-19 13:22:01 -04:00
Ryan C. Gordon
72fdc80512
configure: -idirafter needs a space, -I doesn't.
...
Some compilers are apparently quite cranky about the -I not having a space!
2020-05-19 12:30:26 -04:00
Ryan C. Gordon
475afe2162
configure: Do a real check for -idirafter anyhow.
...
(The CMake project cheats around this by asking "are we GCC or Clang?" and I'm
inclined to leave it like that for now.)
2020-05-19 12:08:05 -04:00
Ryan C. Gordon
2f565b4469
configure: Regenerate configure script.
2020-05-19 11:52:15 -04:00
Ryan C. Gordon
0e08d23793
configure: Not all compilers understand -idirafter, use -I instead.
...
If this is a problem, we can write a test for the compiler flag, but shouldn't
we _always_ use our Khronos headers instead of depending on the system...?
2020-05-19 11:48:22 -04:00