Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
375d93a1
Commit
375d93a1
authored
Aug 19, 2023
by
Jeff Smith
Committed by
Alexandre Julliard
Aug 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus/tests: Add test for non-square icon with GdipCreateBitmapFromHICON.
parent
c5ae02c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
image.c
dlls/gdiplus/tests/image.c
+22
-0
No files found.
dlls/gdiplus/tests/image.c
View file @
375d93a1
...
...
@@ -1668,6 +1668,28 @@ static void test_fromhicon(void)
GdipDisposeImage
((
GpImage
*
)
bitmap
);
}
DestroyIcon
(
hIcon
);
/* non-square 32 bpp icon */
hbmMask
=
CreateBitmap
(
16
,
8
,
1
,
1
,
bmp_bits
);
ok
(
hbmMask
!=
0
,
"CreateBitmap failed
\n
"
);
hbmColor
=
CreateBitmap
(
16
,
8
,
1
,
32
,
bmp_bits
);
ok
(
hbmColor
!=
0
,
"CreateBitmap failed
\n
"
);
info
=
iconinfo_base
;
info
.
hbmMask
=
hbmMask
;
info
.
hbmColor
=
hbmColor
;
hIcon
=
CreateIconIndirect
(
&
info
);
ok
(
hIcon
!=
0
,
"CreateIconIndirect failed
\n
"
);
DeleteObject
(
hbmMask
);
DeleteObject
(
hbmColor
);
stat
=
GdipCreateBitmapFromHICON
(
hIcon
,
&
bitmap
);
expect
(
Ok
,
stat
);
if
(
stat
==
Ok
){
expect_image_properties
((
GpImage
*
)
bitmap
,
16
,
8
,
__LINE__
);
expect_rawformat
(
&
ImageFormatMemoryBMP
,
(
GpImage
*
)
bitmap
,
__LINE__
,
FALSE
);
GdipDisposeImage
((
GpImage
*
)
bitmap
);
}
DestroyIcon
(
hIcon
);
}
/* 1x1 pixel png */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment