| Summary: | SDL_Texture alpha mod value is lost on window resize with render logic size | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Rubinson Ivan <soryy708> |
| Component: | render | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | trivial | ||
| Priority: | P2 | CC: | touk |
| Version: | 2.0.0 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
|
Description
Rubinson Ivan
2013-11-02 03:03:00 UTC
Just want to add: I too have run into this bug, even without using the Logical Size or Color Key functions. Simply using an accelerated renderer and a semi-transparent PNG texture, calling SDL_SetWindowSize seems to break SDL_SetTextureAlphaMod. I can provide an example ZIP if necessary. Yes, an example would be great, thanks! Still seems to happen in 2.0.5 (Windows / mingw / x86). You can try this example: http://github.com/kenmo-pb/SDL-Tests/blob/master/bug2202_main.c 32x32 PNG for testing: http://github.com/kenmo-pb/SDL-Tests/raw/master/32x32.png Disregard my previous comment! I may have been testing with the wrong version of SDL2.dll This bug seems to have been fixed sometime since 2.0.0. Using the 2.0.5 and prerelease 2.0.6 DLLs, the texture alpha seems to be correctly preserved after calling SDL_SetWindowSize. Glad to hear it! :) |