We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1226 - SDL_UpdateWindowSurfaceRects() returns 1
Summary: SDL_UpdateWindowSurfaceRects() returns 1
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86 Linux
: P2 normal
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-13 06:53 UTC by Jonas Thiem
Modified: 2012-01-06 22:24 UTC (History)
0 users

See Also:


Attachments
fixes the bug (577 bytes, patch)
2011-06-13 07:22 UTC, Dimitris Zenios
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonas Thiem 2011-06-13 06:53:52 UTC
The documentation describes a possible return code of 0 (success) and <0 (failure). Still, this function returns 1 for me (SDL_GetError() returns an empty string so that probably means success). Either the documentation or the return value should be fixed.
Comment 1 Dimitris Zenios 2011-06-13 07:22:27 UTC
Created attachment 625 [details]
fixes the bug
Comment 2 Sam Lantinga 2012-01-06 22:24:07 UTC
This is fixed in the current source.  Thanks for the report!