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

Summary: SDL_UpdateWindowSurfaceRects() returns 1
Product: SDL Reporter: Jonas Thiem <contact>
Component: videoAssignee: Sam Lantinga <slouken>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86   
OS: Linux   
Attachments: fixes the 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!