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 - SDL_SaveBMP get a black bitmpa when the video driver is set to directx.
Summary: SDL_SaveBMP get a black bitmpa when the video driver is set to directx.
Status: RESOLVED WORKSFORME
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: don't know
Hardware: x86 Windows (XP)
: P2 major
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-12 03:31 UTC by vvvdotcom
Modified: 2009-09-26 22:32 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.