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
afa7817d
Commit
afa7817d
authored
Jul 27, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Simplify the DIB byte width computation.
parent
4e3c649b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
19 deletions
+1
-19
bitmap.c
dlls/gdi32/tests/bitmap.c
+1
-19
No files found.
dlls/gdi32/tests/bitmap.c
View file @
afa7817d
...
@@ -255,25 +255,7 @@ static void test_createdibitmap(void)
...
@@ -255,25 +255,7 @@ static void test_createdibitmap(void)
static
INT
DIB_GetWidthBytes
(
int
width
,
int
bpp
)
static
INT
DIB_GetWidthBytes
(
int
width
,
int
bpp
)
{
{
int
words
;
return
((
width
*
bpp
+
31
)
/
8
)
&
~
3
;
switch
(
bpp
)
{
case
1
:
words
=
(
width
+
31
)
/
32
;
break
;
case
4
:
words
=
(
width
+
7
)
/
8
;
break
;
case
8
:
words
=
(
width
+
3
)
/
4
;
break
;
case
15
:
case
16
:
words
=
(
width
+
1
)
/
2
;
break
;
case
24
:
words
=
(
width
*
3
+
3
)
/
4
;
break
;
case
32
:
words
=
width
;
break
;
default:
words
=
0
;
trace
(
"Unknown depth %d, please report.
\n
"
,
bpp
);
assert
(
0
);
break
;
}
return
4
*
words
;
}
}
static
void
test_dib_info
(
HBITMAP
hbm
,
const
void
*
bits
,
const
BITMAPINFOHEADER
*
bmih
)
static
void
test_dib_info
(
HBITMAP
hbm
,
const
void
*
bits
,
const
BITMAPINFOHEADER
*
bmih
)
...
...
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