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 275

Summary: SDL_GetVideoInfo does not work as expected.
Product: SDL Reporter: Joe Bestor <joebestor>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: joebestor
Version: 1.2.11   
Hardware: x86   
OS: Windows (XP)   

Description Joe Bestor 2006-07-09 20:40:56 UTC
I'm going through the book, Focus on SDL. The author used SDL version 1.2.3 and 1.2.4. The authors program FOSDL3_1.CPP with 1.2.4 returns the following information on my system:

hw_available? 1
wm_available? 1
blit_hw? 1
blit_hw_CC? 1
blit_hw_A? 0
blit_sw? 1
blit_sw_CC? 1
blit_sw_A? 0
blit_fill? 1
video memory(in K)? 59104
bits per pixel? 32

The authors program with 1.2.11 returns the following information on my system:
hw_available? 0
wm_available? 1
blit_hw? 0
blit_hw_CC? 0
blit_hw_A? 0
blit_sw? 0
blit_sw_CC? 0
blit_sw_A? 0
blit_fill? 0
video memory(in K)? 0
bits per pixel? 32
Comment 1 Dmitry Yakimov 2006-09-11 15:21:01 UTC
May be that is because 1.2.3 used DirectX by default and 1.2.11 uses WinDib?
Comment 2 Sam Lantinga 2006-09-23 21:31:39 UTC
That's correct.  You can test with the DirectDraw video driver by setting the SDL_VIDEODRIVER environment variable to directx