Bug 142708 - [WMF] BitBlt and StretchBlt "without bitmap" variant is not supported
Summary: [WMF] BitBlt and StretchBlt "without bitmap" variant is not supported
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: graphics stack (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: EMF-WMF
  Show dependency treegraph
 
Reported: 2021-06-07 22:42 UTC by Valek Filippov
Modified: 2021-06-08 21:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
WMF sample of BitBlt w/o bitmap (266 bytes, image/x-wmf)
2021-06-07 22:43 UTC, Valek Filippov
Details
How it should look like (1.41 KB, image/png)
2021-06-07 22:45 UTC, Valek Filippov
Details
HOw it looks like in LO (1.07 KB, image/png)
2021-06-07 22:47 UTC, Valek Filippov
Details
WMF sample of StretchBlt w/o bitmap (334 bytes, image/x-wmf)
2021-06-08 21:10 UTC, Valek Filippov
Details
StretchBlt in LO and MS Paint side by side (3.03 KB, image/png)
2021-06-08 21:15 UTC, Valek Filippov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Valek Filippov 2021-06-07 22:42:18 UTC
Description:
[MS-WMF] 2.3.1.1.2 defines a BitBlt "without bitmap" variant.
LO doesn't support it. 

Steps to Reproduce:
Open attached WMF sample.

Actual Results:
LO shows two overlapping rectangles.

Expected Results:
It should have two overlapping rectangles and three copies of the overlapping area in around.


Reproducible: Always


User Profile Reset: No



Additional Info:
One of the smaller rectangles has negative YDest value and one has negative "Width" to allow testing for such cases.
Comment 1 Valek Filippov 2021-06-07 22:43:45 UTC
Created attachment 172686 [details]
WMF sample of BitBlt w/o bitmap
Comment 2 Valek Filippov 2021-06-07 22:45:04 UTC
Created attachment 172687 [details]
How it should look like
Comment 3 Valek Filippov 2021-06-07 22:47:00 UTC
Created attachment 172688 [details]
HOw it looks like in LO
Comment 4 Valek Filippov 2021-06-08 21:10:17 UTC
Created attachment 172710 [details]
WMF sample of StretchBlt w/o bitmap

According to Bartosz BitBlt and StretchBlt implementation is almost identical.
Adding a sample for StretchBlt w/o bitmap.
Comment 5 Valek Filippov 2021-06-08 21:15:37 UTC
Created attachment 172711 [details]
StretchBlt in LO and MS Paint side by side