90b30dc00de3e8a2ba3bec2bc7bd10daef042dff |
|
18-Dec-2012 |
Jesse Hall <jessehall@google.com> |
Fix assumption that pixel alpha is in upper 8 bits QZ_SetPortAlphaOpaque() now retrieves the mask for the alpha channel from the surface pixel format instead of assuming the alpha component is the upper 8 bits of the pixel. NOTE: I doubt this function is even still needed. There's a comment saying that the un-miniaturization animation overrides the window's alpha components, which shouldn't be true on any OpenGL-based window compositor system (i.e. any but the oldest OSX versions). If I make the function a no-op, everything still works fine on my system. But just in case, and since this is in upstream SDL code, I'm leaving it there and fixing it instead of just removing it. Bug: 38913 Change-Id: I15aa1e93c60590ba9f17f7625e55325ec8a36520
/external/qemu/distrib/sdl-1.2.15/src/video/quartz/SDL_QuartzWindow.m
|