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 594

Summary: SDL_SaveBMP get a black bitmpa when the video driver is set to directx.
Product: SDL Reporter: vvvdotcom <zhu_mike>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED WORKSFORME QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2 CC: zhu_mike
Version: don't know   
Hardware: x86   
OS: Windows (XP)   

Description vvvdotcom 2008-06-12 03:31:44 UTC
when the video driver is setted to  directx, the SDL_SaveBMP cannt snap the bitmap.
the bitmap is black. and I find the saveme->pixels data is all 0.
Comment 1 Sam Lantinga 2009-09-26 01:36:37 UTC
Are you using SDL_HWSURFACE when setting the video mode?

Do you still have this issue with the latest SDL 1.2 snapshot?
http://www.libsdl.org/tmp/SDL-1.2.zip
Comment 2 Sam Lantinga 2009-09-26 22:32:35 UTC
I tried saving the video surface under DirectX with SDL_HWSURFACE and I got the correct screen shot.