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
b3d1ea85
Commit
b3d1ea85
authored
Dec 13, 2007
by
Stefan Dösinger
Committed by
Alexandre Julliard
Dec 14, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Test the "alpha" channel on compatible bitmaps.
parent
7f97af2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
1 deletion
+26
-1
bitmap.c
dlls/gdi32/tests/bitmap.c
+26
-1
No files found.
dlls/gdi32/tests/bitmap.c
View file @
b3d1ea85
...
...
@@ -119,8 +119,10 @@ static void test_createdibitmap(void)
{
HDC
hdc
,
hdcmem
;
BITMAPINFOHEADER
bmih
;
BITMAPINFO
bm
;
HBITMAP
hbm
,
hbm_colour
,
hbm_old
;
INT
screen_depth
;
DWORD
pixel
;
hdc
=
GetDC
(
0
);
screen_depth
=
GetDeviceCaps
(
hdc
,
BITSPIXEL
);
...
...
@@ -219,7 +221,30 @@ static void test_createdibitmap(void)
test_bitmap_info
(
hbm
,
1
,
&
bmih
);
DeleteObject
(
hbm
);
}
/* Test how formats are converted */
pixel
=
0xffffffff
;
bmih
.
biBitCount
=
1
;
bmih
.
biWidth
=
1
;
bmih
.
biHeight
=
1
;
memset
(
&
bm
,
0
,
sizeof
(
bm
));
bm
.
bmiHeader
.
biSize
=
sizeof
(
bm
.
bmiHeader
);
bm
.
bmiHeader
.
biWidth
=
1
;
bm
.
bmiHeader
.
biHeight
=
1
;
bm
.
bmiHeader
.
biPlanes
=
1
;
bm
.
bmiHeader
.
biBitCount
=
24
;
bm
.
bmiHeader
.
biCompression
=
BI_RGB
;
bm
.
bmiHeader
.
biSizeImage
=
0
;
hbm
=
CreateDIBitmap
(
hdc
,
&
bmih
,
CBM_INIT
,
&
pixel
,
&
bm
,
DIB_RGB_COLORS
);
ok
(
hbm
!=
NULL
,
"CreateDIBitmap failed
\n
"
);
pixel
=
0xdeadbeef
;
bm
.
bmiHeader
.
biBitCount
=
32
;
GetDIBits
(
hdc
,
hbm
,
0
,
1
,
&
pixel
,
&
bm
,
DIB_RGB_COLORS
);
ok
(
pixel
==
0x00ffffff
,
"Reading a 32 bit pixel from a DDB returned %08x
\n
"
,
pixel
);
DeleteObject
(
hbm
);
ReleaseDC
(
0
,
hdc
);
}
...
...
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