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
b6ef7274
Commit
b6ef7274
authored
May 02, 2014
by
Akihiro Sagawa
Committed by
Alexandre Julliard
May 02, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32/tests: Make bmi structure const.
parent
cfb411c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
dib.c
dlls/gdi32/tests/dib.c
+8
-8
No files found.
dlls/gdi32/tests/dib.c
View file @
b6ef7274
...
...
@@ -1210,17 +1210,17 @@ static const char **current_sha1;
static
const
RECT
*
current_bounds
;
static
const
char
*
dst_format
;
static
inline
DWORD
get_stride
(
BITMAPINFO
*
bmi
)
static
inline
DWORD
get_stride
(
const
BITMAPINFO
*
bmi
)
{
return
((
bmi
->
bmiHeader
.
biBitCount
*
bmi
->
bmiHeader
.
biWidth
+
31
)
>>
3
)
&
~
3
;
}
static
inline
DWORD
get_dib_size
(
BITMAPINFO
*
bmi
)
static
inline
DWORD
get_dib_size
(
const
BITMAPINFO
*
bmi
)
{
return
get_stride
(
bmi
)
*
abs
(
bmi
->
bmiHeader
.
biHeight
);
}
static
char
*
hash_dib
(
BITMAPINFO
*
bmi
,
void
*
bits
)
static
char
*
hash_dib
(
const
BITMAPINFO
*
bmi
,
const
void
*
bits
)
{
DWORD
dib_size
=
get_dib_size
(
bmi
);
HCRYPTHASH
hash
;
...
...
@@ -1288,7 +1288,7 @@ static void skip_compare( int count )
current_bounds
++
;
}
static
void
compare_hash_broken_todo
(
HDC
hdc
,
BITMAPINFO
*
bmi
,
BYTE
*
bits
,
const
char
*
info
,
int
num_broken
,
BOOL
todo
)
static
void
compare_hash_broken_todo
(
HDC
hdc
,
const
BITMAPINFO
*
bmi
,
BYTE
*
bits
,
const
char
*
info
,
int
num_broken
,
BOOL
todo
)
{
char
*
hash
=
hash_dib
(
bmi
,
bits
);
BOOL
ok_cond
;
...
...
@@ -1332,7 +1332,7 @@ static void compare_hash_broken_todo(HDC hdc, BITMAPINFO *bmi, BYTE *bits, const
compare_bounds
(
hdc
,
info
);
}
static
void
compare_hash
(
HDC
hdc
,
BITMAPINFO
*
bmi
,
BYTE
*
bits
,
const
char
*
info
)
static
void
compare_hash
(
HDC
hdc
,
const
BITMAPINFO
*
bmi
,
BYTE
*
bits
,
const
char
*
info
)
{
compare_hash_broken_todo
(
hdc
,
bmi
,
bits
,
info
,
0
,
FALSE
);
}
...
...
@@ -1615,7 +1615,7 @@ static inline void solid_patblt( HDC hdc, int x, int y, int width, int height, C
DeleteObject
(
SelectObject
(
hdc
,
brush
)
);
}
static
void
draw_graphics
(
HDC
hdc
,
BITMAPINFO
*
bmi
,
BYTE
*
bits
)
static
void
draw_graphics
(
HDC
hdc
,
const
BITMAPINFO
*
bmi
,
BYTE
*
bits
)
{
char
pal_buffer
[
sizeof
(
LOGPALETTE
)
+
255
*
sizeof
(
PALETTEENTRY
)];
LOGPALETTE
*
pal
=
(
LOGPALETTE
*
)
pal_buffer
;
...
...
@@ -2840,7 +2840,7 @@ static inline COLORREF aa_colorref( COLORREF dst, COLORREF text, BYTE glyph )
static
const
BYTE
masks
[
8
]
=
{
0x80
,
0x40
,
0x20
,
0x10
,
0x08
,
0x04
,
0x02
,
0x01
};
static
void
draw_text_2
(
HDC
hdc
,
BITMAPINFO
*
bmi
,
BYTE
*
bits
,
BOOL
aa
)
static
void
draw_text_2
(
HDC
hdc
,
const
BITMAPINFO
*
bmi
,
BYTE
*
bits
,
BOOL
aa
)
{
DWORD
dib_size
=
get_dib_size
(
bmi
),
ret
;
LOGFONTA
lf
;
...
...
@@ -2956,7 +2956,7 @@ static void draw_text_2( HDC hdc, BITMAPINFO *bmi, BYTE *bits, BOOL aa )
DeleteObject
(
font
);
}
static
void
draw_text
(
HDC
hdc
,
BITMAPINFO
*
bmi
,
BYTE
*
bits
)
static
void
draw_text
(
HDC
hdc
,
const
BITMAPINFO
*
bmi
,
BYTE
*
bits
)
{
draw_text_2
(
hdc
,
bmi
,
bits
,
FALSE
);
...
...
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