JDK-4425895 : onscreen window not using correct palette on win32 8-bit mode
Type:Bug
Component:client-libs
Sub-Component:2d
Affected Version:1.4.0
Priority:P3
Status:Resolved
Resolution:Fixed
OS:windows_nt
CPU:x86
Submitted:2001-03-15
Updated:2001-03-26
Resolved:2001-03-26
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Run the attached test (VImageColors.java). Note that the right panel
looks different than the other two. All three should look the same, with the
same image, fill color, and text color.
Comments
CONVERTED DATA
BugTraq+ Release Management Values
COMMIT TO FIX:
merlin-beta
FIXED IN:
merlin-beta
INTEGRATED IN:
merlin-beta
14-06-2004
EVALUATION
This problem comes from our recent change to use multiple DC's, one per
rendering thread. The problem is that we need to select our current
palette into any DC that we use for rendering. If we don't do that, then
we basically have no palette selected for that DC and rendering that is
done with that DC will only be able to use the default system palette
colors.
The fix is to put a SelectPalette() using the shared palette wherever
we create a new DC.
chet.haase@Eng 2001-03-14