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
a135e471
Commit
a135e471
authored
Nov 29, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't set gradient alpha channel for 8888 bitmaps created with bitfields.
parent
a869fc47
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
0 deletions
+4
-0
bitblt.c
dlls/gdi32/dibdrv/bitblt.c
+2
-0
dc.c
dlls/gdi32/dibdrv/dc.c
+1
-0
dibdrv.h
dlls/gdi32/dibdrv/dibdrv.h
+1
-0
No files found.
dlls/gdi32/dibdrv/bitblt.c
View file @
a135e471
...
@@ -1320,6 +1320,8 @@ BOOL dibdrv_GradientFill( PHYSDEV dev, TRIVERTEX *vert_array, ULONG nvert,
...
@@ -1320,6 +1320,8 @@ BOOL dibdrv_GradientFill( PHYSDEV dev, TRIVERTEX *vert_array, ULONG nvert,
v
[
0
].
y
=
min
(
pt
[
0
].
y
,
pt
[
1
].
y
);
v
[
0
].
y
=
min
(
pt
[
0
].
y
,
pt
[
1
].
y
);
v
[
1
].
x
=
max
(
pt
[
0
].
x
,
pt
[
1
].
x
);
v
[
1
].
x
=
max
(
pt
[
0
].
x
,
pt
[
1
].
x
);
v
[
1
].
y
=
max
(
pt
[
0
].
y
,
pt
[
1
].
y
);
v
[
1
].
y
=
max
(
pt
[
0
].
y
,
pt
[
1
].
y
);
if
(
pdev
->
dib
.
funcs
==
&
funcs_8888
&&
pdev
->
dib
.
compression
==
BI_BITFIELDS
)
v
[
0
].
Alpha
=
v
[
1
].
Alpha
=
0
;
/* Windows bug: no alpha on a8r8g8b8 created with bitfields */
gradient_rect
(
&
pdev
->
dib
,
v
,
mode
,
pdev
->
clip
);
gradient_rect
(
&
pdev
->
dib
,
v
,
mode
,
pdev
->
clip
);
}
}
return
TRUE
;
return
TRUE
;
...
...
dlls/gdi32/dibdrv/dc.c
View file @
a135e471
...
@@ -73,6 +73,7 @@ BOOL init_dib_info(dib_info *dib, const BITMAPINFOHEADER *bi, const DWORD *bit_f
...
@@ -73,6 +73,7 @@ BOOL init_dib_info(dib_info *dib, const BITMAPINFOHEADER *bi, const DWORD *bit_f
dib
->
bit_count
=
bi
->
biBitCount
;
dib
->
bit_count
=
bi
->
biBitCount
;
dib
->
width
=
bi
->
biWidth
;
dib
->
width
=
bi
->
biWidth
;
dib
->
height
=
bi
->
biHeight
;
dib
->
height
=
bi
->
biHeight
;
dib
->
compression
=
bi
->
biCompression
;
dib
->
stride
=
get_dib_stride
(
dib
->
width
,
dib
->
bit_count
);
dib
->
stride
=
get_dib_stride
(
dib
->
width
,
dib
->
bit_count
);
dib
->
bits
.
ptr
=
bits
;
dib
->
bits
.
ptr
=
bits
;
dib
->
bits
.
is_copy
=
FALSE
;
dib
->
bits
.
is_copy
=
FALSE
;
...
...
dlls/gdi32/dibdrv/dibdrv.h
View file @
a135e471
...
@@ -26,6 +26,7 @@ enum dib_info_flags
...
@@ -26,6 +26,7 @@ enum dib_info_flags
typedef
struct
typedef
struct
{
{
int
bit_count
,
width
,
height
;
int
bit_count
,
width
,
height
;
int
compression
;
int
stride
;
/* stride in bytes. Will be -ve for bottom-up dibs (see bits). */
int
stride
;
/* stride in bytes. Will be -ve for bottom-up dibs (see bits). */
struct
gdi_image_bits
bits
;
/* bits.ptr points to the top-left corner of the dib. */
struct
gdi_image_bits
bits
;
/* bits.ptr points to the top-left corner of the dib. */
...
...
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