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 - SDL_GetVideoInfo does not work as expected.
Summary: SDL_GetVideoInfo does not work as expected.
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: 1.2.11
Hardware: x86 Windows (XP)
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-09 20:40 UTC by Joe Bestor
Modified: 2006-09-23 21:31 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 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