summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-02-28Update to wayland API changesHEADmasterBenjamin Franzke5-40/+110
2012-02-28wayland: Fullscreen supportBenjamin Franzke2-5/+36
2012-02-28wayland: Update to wayland protocol and egl changesBenjamin Franzke5-13/+12
2012-02-28wayland: Schedule writable iterationsBenjamin Franzke5-1/+32
Do not iterate writable in update_event_mask directly, or client apis like EGL that need to flush write may be blocked or get an unsolicited flags error. Schedule write at the end of all function invoking wayland calls.
2012-02-28wayland: Remove unecessary debug outputBenjamin Franzke4-18/+8
2012-02-28wayland: Remove a unnecessary glClearBenjamin Franzke1-9/+0
2012-02-28wayland: Choose visual according to gl_config.alpha_sizeBenjamin Franzke1-1/+4
2012-02-28wayland: Respect some common gl_config attrib sizesBenjamin Franzke1-4/+11
2012-02-28wayland: rename SDL_waylandgl to SDL_waylandopenglBenjamin Franzke3-5/+5
2012-02-28wayland: Fix mouse button numerationBenjamin Franzke1-3/+23
2012-02-28wayland Remove not compiling gl rendererBenjamin Franzke2-3/+2
2012-02-28wayland: Fix tab vs whitespace issuesBenjamin Franzke8-235/+244
2012-02-28wayland: update to wayland-egl API changesBenjamin Franzke6-16/+14
2012-02-28wayland: Update to libwayland-egl api changesBenjamin Franzke5-9/+13
2012-02-28wayland: Use helper libwayland-eglBenjamin Franzke6-44/+11
2012-02-28wayland: use egl-wayland PlatformBenjamin Franzke6-296/+117
at the time of writing this, following mesa branch is needed: http://cgit.freedesktop.org/~bnf/mesa/log/?h=egl-wayland
2012-02-28wayland: support sendkeyboard{key,text}Benjamin Franzke1-9/+45
2012-02-28wayland: Improved the configure scriptJoel Teichroeb1-6/+18
2012-02-28wayland: Cange some errors to use SDL_SetError and remove some unused variablesJoel Teichroeb3-7/+4
2012-02-28wayland: Cleaned up the codeJoel Teichroeb7-91/+109
2012-02-28wayland: surface.damage: x,y relative to the surfaceBenjamin Franzke1-4/+2
2012-02-28wayland: Flip the DRM Image prior attaching to the wl_surfaceBenjamin Franzke2-3/+119
2012-02-28wayland: Generate {Frame,Render}Buffer in MakeCurrent only onceBenjamin Franzke4-14/+32
2012-02-28wayland: Add support for a depth bufferBenjamin Franzke3-8/+18
2012-02-28Wayland_DestroyWindow: only free Window data if its != NULLBenjamin Franzke1-2/+2
2012-02-28wayland: DestroyWindow: free Renderbuffers and DRM ImagesBenjamin Franzke1-1/+9
2012-02-28wayland: implement DestroyWindowBenjamin Franzke3-0/+15
2012-02-28If the window was not created with the opengl flag, opengl isJoel Teichroeb1-0/+5
initialized and the flag is added.
2012-02-28wayland: check whether eglCreateDRMImageMESA was successfullBenjamin Franzke1-0/+6
2012-02-28Removed the wayland renderer and switched to the built in openglJoel Teichroeb5-380/+31
renderer. Correctly set the display size.
2012-02-28wayland: handle_motion: use sx and sy (relative to the surface)Benjamin Franzke1-1/+1
2012-02-28wayland: Add origin information to display_handle_geometryBenjamin Franzke1-2/+3
2012-02-28wayland: return context in CreateContextBenjamin Franzke1-1/+1
2012-02-28Make the window respect the starting position.Joel Teichroeb3-7/+20
Tell sdl when the mouse moves off the window.
2012-02-28wayland: implement PumpEvents nonblockingBenjamin Franzke1-3/+24
2012-02-28Events now work (somewhat)joel@teichroeb.net4-7/+19
2012-02-28Added some code for input but it still does not work.joel@teichroeb.net8-26/+200
Some cleanups.
2012-02-28wayland: dont use stderr in printfBenjamin Franzke1-1/+1
2012-02-28Fixed renderingBenjamin Franzke5-52/+86
2012-02-28added some detection of waylandjoel@teichroeb.net4-0/+21
2012-02-28Started on the wayland platformjoel@teichroeb.net10-0/+1073
2012-02-04Make mouse relative mode save the original co-ordinates to restore themWim Looman2-2/+8
properly.
2012-02-03Change SDL_SetCursor to set the cursor back to the default cursor when theWim Looman3-12/+12
window is unfocused.
2012-02-03Fix null reference exception.Wim Looman1-1/+1
Occurred when using relative mouse mode without a focused window.
2012-02-20Fixed bug 1423 - Finger touch events don't report pressureSam Lantinga1-2/+6
Philip Taylor 2012-02-19 08:34:52 PST SDL_touch.c never actually uses the 'pressurein' arguments to SDL_SendFingerDown/SDL_SendTouchMotion, so it doesn't report the real pressure. Also it uses touch->pressureres which is never initialised. Also it fails to initialise some fields of event.tfinger for certain events, so applications might try to use bogus data. The attached patch seems to be enough to produce generally sensible output on Android.
2012-02-20Fixed bug 1426 - SDL_SemWaitTimeout returns -1 and sets error instead of ↵Sam Lantinga2-2/+11
SDL_MUTEX_TIMEDOUT on time out deraj 2012-02-19 19:01:08 PST Fix to treat ETIMEDOUT as a time out instead of an error (and update the test)
2012-02-20Add OpenGL 3.X context creation supportSam Lantinga5-22/+144
Matthias Bentrup 2011-10-30 03:58:24 PDT I've updated the context creation patch to include the bugfixes by Martin Schreiber and also included a profile bit to request a ES2 compatible profile. The wgl context creation may use 2 call to wglChoosePixelFormat if no acceleration attribute is selected, this should work around a bug with buggy AMD drivers (see #1254).
2012-02-20Fixed bug 1424 - Handling of alpha channel in Altivec accelerated blit functionsSam Lantinga1-0/+8
evilbite 2012-02-19 09:38:21 PST There is only one Altivec accelerated blit function (ConvertAltivec32to32_prefetch() or ConvertAltivec32to32_noprefetch(), depending on the CPU used) that is supposed to handle all alpha combinations. This works as follows for every pixel line: 1. Blit single pixels until an aligned address is reached 2. Accelerated blit as far as possible 3. Blit single remaining pixels Part 2. is set up correctly to handle different combinations of the alpha channels of the participating surfaces. Parts 1. and 3. only do a simple copy of all the pixel's components from souce to destination. But when the source surface has no alpha channel (Amask is 0, e.g. the video surface) the surface's alpha value must be used instead. Otherwise crap (uninitialized data) is being copied to the destiniation's alpha channel. The attached patch is a quick'n'dirty solution to the problem. A more sophisticated solution might require separate functions for different combinations of the alpha channels of the participating surfaces.
2012-02-20Fix for double free when quitting on iOSSam Lantinga2-51/+51
Tim Angus 2012-02-20 09:40:35 PST As alluded to in the email thread "SDL2 error on iOS (doublefree)", I believe the original cause of this bug is confusion over the purpose of SDL_VideoDisplay::current_mode. It looks as though it is a weak reference to another mode, albeit with value semantics. The iOS port treated it as a strong reference however and claimed ownership, which is why things blew up. All the patch really does it to stop treating current_mode as a strong reference. To prevent this happening again it might be an idea to change current_mode to be a pointer type rather than a value. This would certainly make its semantics much more obvious. Failing that, a comment in the struct indicating its weak reference properties might be wise.
2012-02-15Fixed bug 1419 - SDL_libgl2D.c breaks ndk-buildSam Lantinga2-0/+9
Philip Taylor 2012-02-15 10:43:47 PST render/nds/SDL_libgl2D.c unconditionally includes NDS-only code. SDL's Android.mk compiles source files matching $(wildcard $(LOCAL_PATH)/src/render/*/*.c) which includes that file, causing build errors when running ndk-build.