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 340

Summary: DIB_FocusPalette foreground/background handling
Product: SDL Reporter: Dmitry Yakimov <support>
Component: videoAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED INVALID QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 1.2   
Hardware: x86   
OS: Windows (All)   

Description Dmitry Yakimov 2006-10-08 14:55:50 UTC
Why in DIB_FocusPalette 'foreground' variable is not used?
I think it might be used in SelectPalette(hdc, screen_pal, !foreground), right?

It will help in case SDL window is a child window and there are some others windows that uses their own palette.
 
-- Dmitry
Comment 1 Sam Lantinga 2007-07-03 01:23:05 UTC
As far as I can tell the third argument to SelectPalette() simply affects whether the call should try to change the display palette or just map to the display palette.  In our case we always want to change the display palette to the one we want.

I'm checking in new palette code shortly to improve SDL DIB palette handling.