Sam Lantinga [Fri, 16 Aug 2013 06:59:19 -0700] rev 7640
Fixed alpha blending for the MMX blit functions
I see the Remarks of function SDL_BlitSurface shows that "when SDL_BLENDMODE_BLEND, we have dstA = srcA + (dstA * (1-srcA))". however, I tested some pictures but the result implies "dstA=arcA" actually. I stepped into the source code, and found after I set SDL_BLENDMODE_BLEND for the source surface, the final blit function is BlitRGBtoRGBPixelAlphaMMX when I use SDL_BlitSurface on my computer. And I found these codes:
else if (alpha == amask) {
/* opaque alpha -- copy RGB, keep dst alpha */
*dstp = (*srcp & chanmask) | (*dstp & ~chanmask);
The same code is used in BlitRGBtoRGBPixelAlphaMMX3DNOW and BlitRGBtoRGBPixelAlpha. So I think they still keep dst alpha.
Best regards,
Jianyu Guan
Andreas Schiffler [Wed, 14 Aug 2013 23:30:10 -0700] rev 7639
Fix bug 2034: replace printf by SDL_Log in tests; update loopwave VS solution: copy missing dependency
Sam Lantinga [Mon, 12 Aug 2013 22:00:21 -0700] rev 7638
Don't print "unrecognized key" message for an X11 keycode of 0. This can happen with composed characters.
Sam Lantinga [Mon, 12 Aug 2013 19:18:48 -0700] rev 7637
Fixed the tag name for the SDL 2.0 release
Jørgen P. Tjernø [Mon, 12 Aug 2013 11:09:13 -0700] rev 7636
Mac: Fix restoring of Cmd-H-hidden fullscreen desktop windows.
This should fix http://bugzilla.libsdl.org/show_bug.cgi?id=1996
Sam Lantinga [Mon, 12 Aug 2013 08:45:37 -0700] rev 7635
Added Julian Winter to the credits for the SDL 2.0 website.
Sam Lantinga [Mon, 12 Aug 2013 08:40:49 -0700] rev 7634
Added tag release_2.0.0 for changeset d6a8fa507a45
Gabriel Jacobo [Mon, 12 Aug 2013 11:13:50 -0300] rev 7633
Fixes #2022, do not resume on Android when surfaceChanged
If the app is in landscape mode and the user presses the power button, a pause
is followed immediately by a surfaceChanged event because the lock screen
is shown in portrait mode. This triggers a "false" resume.
So, we just pause and resume following the onWindowFocusChanged events.
Also, wait for SDL_APP_WILLENTERBACKGROUND and SDL_APP_DIDENTERBACKGROUND before
blocking the event pump.
Sam Lantinga [Sun, 11 Aug 2013 19:56:43 -0700] rev 7632
Fixed bug 2027 - Full-screen appears to be broken - hang in SDL_DestroyWindow()
Rainer Deyke
I'm running Linux Mint 15 with the Cinnamon window manager. SDL_DestroyWindow consistently locks up for me when the window if fullscreen.
Philipp Wiesemann [Sat, 10 Aug 2013 23:21:06 +0200] rev 7631
Added missing call to SDL_stack_free().
On Windows this is needed because SDL_stack_alloc() wraps SDL_malloc().