Commit graph

3035 commits

Author SHA1 Message Date
Sam Lantinga
0595ce74e3 John Wilson 2010-08-17 17:09:16 PDT
The are no event handlers for the middle mouse button, right mouse buttons, and
mouse wheel in the latest HG revision 4636. It has been like this for 3 months.
I made a patch for this, though I'm not sure if the Xbutton or mouse wheel code
is "correct" by your standards.
2011-01-19 22:39:02 -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
c14d8951f3 Removed debug print statements 2011-01-19 19:51:04 -08:00
Sam Lantinga
e34085307a 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
1e7f74dc1b Window move events have the same problem as size events on Windows 2011-01-19 16:02:15 -08:00
Sam Lantinga
e18725689b Normalized line endings 2011-01-19 13:44:55 -08:00
Sam Lantinga
7f8a24afe8 Raw input is no longer used. Yay! 2011-01-19 13:44:44 -08:00
Sam Lantinga
1507fa272f Added XFlush() so changes happen immediately instead of waiting for the next event loop. 2011-01-19 10:14:11 -08:00
Sam Lantinga
5601ecaeae Whoops, good catch from Greg Jandl 2011-01-18 22:10:37 -08:00
Sam Lantinga
c53fea3bcc Fixed build against 10.4 SDK 2011-01-18 14:57:39 -08:00
Sam Lantinga
d16468c1cb Fixed compiler error with the latest Xcode package 2011-01-18 14:26:30 -08:00
Sam Lantinga
cdb1bda300 Use compiler intrinsics on Windows 2011-01-17 14:05:43 -08:00
Sam Lantinga
264e590e65 Fixed compiler warning about symbol redefinition 2011-01-16 17:47:52 -08:00
Sam Lantinga
d428d9d5a1 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
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
cab4e0652a Added "mouse" support for the Android touch screen 2011-01-13 18:31:15 -08:00
Sam Lantinga
70c916a415 Cleaned up internal accelerometer interface 2011-01-13 18:03:56 -08:00
Sam Lantinga
0ce4324420 Make sure we shut down the app if SDL_main() returns instead of exiting. 2011-01-13 17:13:00 -08:00
Sam Lantinga
9fa1d4876d The window is changed to reflect the actual screen dimensions, for now.
Implemented SDL_SetWindowTitle(), which turned out to be fairly complex
2011-01-13 15:10:17 -08:00
Sam Lantinga
82e985a8ba Removed code from GetPrimtiveArrayCritical() experiment 2011-01-13 12:36:59 -08:00
Sam Lantinga
5b1882ee17 Fixed audio buffer lifecycle and implemented audio shutdown 2011-01-13 12:32:55 -08:00
Sam Lantinga
4f9db82a4c Working audio implementation contributed by Joseph Lunderville 2011-01-13 11:14:20 -08:00
Sam Lantinga
a409f9858f Added missing header 2011-01-13 09:15:51 -08:00
Sam Lantinga
738f971adb Implemented translation from Android keycodes to SDL scancodes 2011-01-12 21:21:21 -08:00
Sam Lantinga
6e69fae33e Added an extra line for consistency 2011-01-12 21:21:08 -08:00
Sam Lantinga
d6dc10e868 Improved error message for unsupported texture format 2011-01-12 19:33:04 -08:00
Sam Lantinga
0fa1d9fe61 More Android cleanup:
* Formalized the interface with Java methods in SDL_android.h
* We don't need the feature system, at least right now
* Fixed waiting for the SDLMain thread
2011-01-12 17:53:06 -08:00
Sam Lantinga
36207555fb Set blend mode for textures that were created from surfaces with a colorkey 2011-01-12 15:58:53 -08:00
Sam Lantinga
ce6f23bcc6 Renderer didn't advertise texture format SDL_PIXELFORMAT_ABGR8888 2011-01-12 15:42:26 -08:00
Sam Lantinga
aaa6a02fb0 Fixed blue-red channel swap in OpenGL ES 16-bit texture formats 2011-01-12 15:23:19 -08:00
Sam Lantinga
a4231ad5d8 Support the new 16-bit pixel formats in SDL_CreateTextureFromSurface() 2011-01-12 15:22:29 -08:00
Sam Lantinga
067058ff3a Support the new 16-bit formats in SDL_MasksToPixelFormatEnum() 2011-01-12 15:21:12 -08:00
Sam Lantinga
fdea37a756 Added some missing pixel formats and SDL_GetPixelFormatName() 2011-01-12 14:53:23 -08:00
Sam Lantinga
25101525df Fill in the video mode with the correct screen format 2011-01-12 14:29:01 -08:00
Sam Lantinga
a410db1ae6 A bit of cleanup in the Android driver 2011-01-12 13:52:41 -08:00
Sam Lantinga
74b33811bd Added SDL errors to the Android log stream if DEBUG_ERROR is defined 2011-01-12 13:52:27 -08:00
Sam Lantinga
835dde1a18 You can't change the resolution on some devices 2011-01-12 13:46:37 -08:00
Sam Lantinga
9ec38356d0 Use a valid window when creating the default renderer 2011-01-12 13:38:10 -08:00
Sam Lantinga
ca871fdc4b Fixed return value 2011-01-07 09:53:08 -08:00
Sam Lantinga
606b0cda7f Build the SDL library as a shared object on Android, so it will work correctly with SDL_image and SDL_ttf. 2011-01-06 16:11:21 -08:00
Sam Lantinga
e92a0428c3 Fixed screen texture format on Android
I think this also fixes some of the red/blue channel swap bugs reported on iPhone.
2011-01-05 00:09:19 -08:00
Sam Lantinga
63925f3c8f Fixed 2D video on Android
There was a dummy renderer left in there which was overriding the OpenGL ES renderer.
2011-01-04 20:36:39 -08:00
Sam Lantinga
fc43aba7be Don't continually print stub message for testgles 2011-01-04 20:30:54 -08:00
Sam Lantinga
c7c6cb464a The source rectangle isn't modified in SDL_UpperBlit 2011-01-04 10:19:24 -08:00
Sam Lantinga
0398104662 Fixed crash on Windows XP 2011-01-03 14:39:41 -08:00
Sam Lantinga
794752a10c Fixed trying to create an XRender texture for YUV formats 2011-01-01 20:46:39 -08:00
Sam Lantinga
3927b4a33c Final touches on renaming SDL_eventtouch to SDL_x11touch 2011-01-01 20:04:50 -08:00