You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reported in version: HG 2.0 Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2012-06-14 16:33:21 +0000, wrote:
SDL_UpperBlitScaled is able to scale a surface and blit it, but it ignores the alpha value of the source surface. Instead of alpha blending, it blits the source surface with a white background.
SDL_Surface *copy = SDL_ConvertSurface(src, target->format, 0); // Ensure that format matches
SDL_UpperBlit(copy, nullptr, target, &clip);
SDL_FreeSurface(copy);
This scales it, but alpha is ignored, giving a white background to blitted surfaces:
SDL_Surface *copy = SDL_ConvertSurface(src, target->format, 0); // Ensure that format matches
SDL_UpperBlitScaled(copy, nullptr, target, &clip);
SDL_FreeSurface(copy);
Additional Info:
SDL revision: 6328:9a65b2bd4e01
On 2013-02-21 14:11:22 +0000, wrote:
This bug doesn't seem to be isolated to Linux x86_64. I'm experiencing the same issue on WinXP/32, Win7/32 and Win7/64. For now, I've substituted SDL_SoftStretch() but there is a significant performance hit using this method.
I've been unsuccessful to date resolving the issue in source but the issue still exists in the latest source snap 2.0.0-6894 as well as trunk. Glad to help out with examples.
On 2013-03-01 01:08:29 +0000, Sam Lantinga wrote:
Yes, a simple example would be great. Thanks!
On 2015-05-06 19:39:00 +0000, Philipp Wiesemann wrote:
Maybe this is or was related to bug 2976.
On 2017-11-07 11:12:18 +0000, Sylvain wrote:
Created attachment 3073
test case
On 2017-11-07 11:12:39 +0000, Sylvain wrote:
Created attachment 3074
image
On 2017-11-07 11:20:56 +0000, Sylvain wrote:
Here's a testcase and it's image, tested on latest and also SDL 2.0.0. On ubuntu converting to ARGB8888 and RGBA8888.
It seems to me it SDL_UpperBlit and SDL_UpperBlitScaled behave correctly.
But with SDL_SoftStretch, Alpha is copied instead of being blended.
But two things seems wrong :
SDL_SoftStretch, Alpha is copied instead of being blended.
Depending on the position of SDL_UpperBlit :
SDL_UpperBlit(surf, NULL, surf_target1, &clip); // Normal Blit
SDL_SoftStretch(surf, NULL, surf_target3, &clip); // Aie, no scaled !
SDL_UpperBlitScaled(surf, NULL, surf_target2, &clip); // Aie, no scaled !
This bug report was migrated from our old Bugzilla tracker.
These attachments are available in the static archive:
Reported in version: HG 2.0
Reported for operating system, platform: Linux, x86_64
Comments on the original bug report:
On 2012-06-14 16:33:21 +0000, wrote:
On 2013-02-21 14:11:22 +0000, wrote:
On 2013-03-01 01:08:29 +0000, Sam Lantinga wrote:
On 2015-05-06 19:39:00 +0000, Philipp Wiesemann wrote:
On 2017-11-07 11:12:18 +0000, Sylvain wrote:
On 2017-11-07 11:12:39 +0000, Sylvain wrote:
On 2017-11-07 11:20:56 +0000, Sylvain wrote:
On 2017-11-07 11:25:32 +0000, Sylvain wrote:
On 2017-11-07 12:40:11 +0000, Sylvain wrote:
The text was updated successfully, but these errors were encountered: