Closed Bug 235064 Opened 22 years ago Closed 22 years ago

Poor visual quality of background on 8-bit win32

Categories

(Core Graveyard :: GFX: Win32, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: tor, Assigned: tor)

References

()

Details

Attachments

(1 file, 4 obsolete files)

Background images look pretty bad when run in 8-bit mode on windows. Turns out that in the tiling code we're creating a new DC but not setting the flag that makes GDI dither the result.
Attached file testcase (obsolete) —
Attached patch patch (obsolete) — — Splinter Review
Attachment #141850 - Flags: review?(ere)
Comment on attachment 141850 [details] [diff] [review] patch Seems to be only dithering against the locked-down colors.
Attachment #141850 - Attachment is obsolete: true
Attachment #141850 - Flags: review?(ere)
Attached patch hook up the palette too (obsolete) — — Splinter Review
Attachment #141849 - Attachment is obsolete: true
Attachment #141853 - Flags: review?(ere)
Comment on attachment 141853 [details] [diff] [review] hook up the palette too wrong patch
Attachment #141853 - Attachment is obsolete: true
Attachment #141853 - Flags: review?(ere)
Attached patch right patch (obsolete) — — Splinter Review
Attachment #141855 - Flags: review?(ere)
Wow, it even makes Modern almost usable in 256 colours!
Comment on attachment 141855 [details] [diff] [review] right patch Looks more consistent but bad in very green way in a terminal session, but I believe this is the right thing to do and I also believe Neil.
Attachment #141855 - Flags: review?(ere) → review+
Attachment #141855 - Flags: superreview?(roc)
Comment on attachment 141855 [details] [diff] [review] right patch Two questions: -- The comment says we only progressive double blit if we're not in 256 color mode, and it looks like the code agrees. What's going on? -- Are you forgetting to release dctx? Why did you change it from being an nsCOMPtr?
Attached patch back to nsCOMPtr — — Splinter Review
The mNumPaletteColors check seems to be old code to deal with colormapped images, which gfx never sees these days. Switched back to nsCOMPtr.
Attachment #141855 - Attachment is obsolete: true
Attachment #142243 - Flags: superreview?(roc)
Comment on attachment 142243 [details] [diff] [review] back to nsCOMPtr Please change the comment about 256 colors to something like // we aren't a 256 color image, and we don't have an unoptimized 8 bit alpha.
Attachment #142243 - Flags: superreview?(roc) → superreview+
Checked in.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: