diff options
| author | Martin Storsjo <martin@martin.st> | 2018-05-15 06:35:20 +0000 |
|---|---|---|
| committer | Martin Storsjo <martin@martin.st> | 2018-05-15 06:35:20 +0000 |
| commit | 860e5fcdf4305c0681c4e77e17b22d2e54fe163b (patch) | |
| tree | e6ab342b6301180bc62ec867d82e71fbd7371dac /llvm/test | |
| parent | b7d50115ba4900da6db7afb6460ad42ff19ba6a2 (diff) | |
| download | bcm5719-llvm-860e5fcdf4305c0681c4e77e17b22d2e54fe163b.tar.gz bcm5719-llvm-860e5fcdf4305c0681c4e77e17b22d2e54fe163b.zip | |
[llvm-rc] Read the Planes/BitCount fields from BITMAPINFOHEADER for icons
Previously these fields were only read from this header for cursors,
while Planes was hardcoded to 1 for icons (with a comment that it was
unknown why this was needed) and BitCount was left at the value
read originally in the RESDIRENTRY.
This fixes the single byte that was differing for the icon/cursor test
compared to rc.exe.
This is based on research/testing by Nico Weber.
Differential Revision: https://reviews.llvm.org/D46816
llvm-svn: 332328
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/tools/llvm-rc/tag-icon-cursor.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/tools/llvm-rc/tag-icon-cursor.test b/llvm/test/tools/llvm-rc/tag-icon-cursor.test index 59fae38a34a..44ef6841165 100644 --- a/llvm/test/tools/llvm-rc/tag-icon-cursor.test +++ b/llvm/test/tools/llvm-rc/tag-icon-cursor.test @@ -156,7 +156,7 @@ ; CHECK-NEXT: Characteristics: 0 ; CHECK-NEXT: Data size: 62 ; CHECK-NEXT: Data: ( -; CHECK-NEXT: 0000: 00000100 04001010 00000100 00006804 |..............h.| +; CHECK-NEXT: 0000: 00000100 04001010 00000100 20006804 |............ .h.| ; CHECK-NEXT: 0010: 00000300 18180000 01002000 88090000 |.......... .....| ; CHECK-NEXT: 0020: 04002020 00000100 2000A810 00000500 |.. .... .......| ; CHECK-NEXT: 0030: 30300000 01002000 A8250000 0600 |00.... ..%....| |

