| Summary: | SDL_UpdateRect is ignored in while. | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | Moige <alexis.richard> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | minor | ||
| Priority: | P2 | ||
| Version: | 2.0.0 | ||
| Hardware: | x86_64 | ||
| OS: | Windows 7 | ||
|
Description
Moige
2015-01-16 19:04:41 UTC
Additional debugging shows that neither the SDL_FillRect nor SDL_UpdateRect invocations fail, but instead the SDL_Rect variable used somehow sees its 'h' component getting zeroed. Since there should not be any changes made to that one variable during the 'while' loop, i'd guess this happens during the SDL_FillRect calls; this is the only one using a SDL_Rect* parameter, and as a result the only one that could possibly edit it. If so, i can't pinpoint the problem any more precisely. Thanks for your time. out-of-screen positioning caused SDL_FillRect to nullify some SDL_Rect components, hence the impression SDL_UpdateRect wasn't working. |