Closed Bug 143365 Opened 24 years ago Closed 23 years ago

unloaded part of bmp image displays black/random garbage

Categories

(Core Graveyard :: Image: Painting, defect, P2)

x86
All
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.4alpha

People

(Reporter: vectro, Assigned: Biesinger)

References

()

Details

Attachments

(1 file, 1 obsolete file)

The unloaded portion of Windows BitMap images is not displayed as trasparent; rather, that portion seems to be filled with some image from the cache, or a solid colour. The linked page has one example of a windows bitmap which is large enough to display progressive rendering.
Mozilla 2002061108/Linux-686. It WFM, but I have seen similar problem with progressive BMPs delivered in mail.
2002072204 --- I see the unloaded portion of the BMP as black.
Status: UNCONFIRMED → NEW
Ever confirmed: true
correcting summary. progressive bmp loading works just fine.
Summary: Progressive loading of BMP images broken → unloaded part of bmp image displays black/random garbage
taking bug.
Assignee: pavlov → cbiesinger
happens on windows too.
OS: Linux → All
Target Milestone: --- → Future
Priority: -- → P4
grrr. I found the reason for this bug. it's in gfx code. I'll attach a patch as soon as I fix the non-gtk platforms.
Component: ImageLib → Image: GFX
Target Milestone: Future → mozilla1.4alpha
Attached patch patch (obsolete) — Splinter Review
so here's the patch. It is tested on gtk, and I will test xlib and windows too. OS/2 seems not affected, and I can't make head or tail of the photon code.
Status: NEW → ASSIGNED
Priority: P4 → P2
Comment on attachment 116643 [details] [diff] [review] patch logic looks good. I have plans on changing mDecoded[XY][12] to the OS/2 style of mDecodedRect, but that won't be for a while. So in the mean time, this will be nice.
Attachment #116643 - Flags: review+
Comment on attachment 116643 [details] [diff] [review] patch tor, could you super-review this simple patch to fix a display problem of (bottom-to-top loading) bmp images? It makes the nsIImage implementations "do the right thing" (interestingly, almost all of them have this bug :) )
Attachment #116643 - Flags: superreview?(tor)
Note to biesi: Os/2 doesn't have this problem. Works great, and we actually use the background color before the image is drawn (we don't just fill it white)
Probably need a check in Draw/DrawTile of the various platforms to bail if X1>X2 or Y1>Y2, as the [XY]1 values are used in some clipping calculations.
Comment on attachment 116643 [details] [diff] [review] patch marking superreview- due to last comment, will attach another patch
Attachment #116643 - Flags: superreview?(tor) → superreview-
note, this also includes a few warning fixes in nsImageGTK
Attachment #116643 - Attachment is obsolete: true
Comment on attachment 117015 [details] [diff] [review] address tor's comment transferring r=paper, re-requesting sr
Attachment #117015 - Flags: superreview?(tor)
Attachment #117015 - Flags: review+
Comment on attachment 117015 [details] [diff] [review] address tor's comment Good find. sr=tor
Attachment #117015 - Flags: superreview?(tor) → superreview+
fixed, thanks for the reviews.
Status: ASSIGNED → RESOLVED
Closed: 23 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

Created:
Updated:
Size: