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
5433969e
Commit
5433969e
authored
Mar 28, 2010
by
Vincent Povirk
Committed by
Alexandre Julliard
Mar 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdiplus: Don't use gdi32 to draw to bitmaps with formats it can't handle.
parent
af7b8efc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
179 additions
and
71 deletions
+179
-71
gdiplus_private.h
dlls/gdiplus/gdiplus_private.h
+23
-0
graphics.c
dlls/gdiplus/graphics.c
+156
-71
No files found.
dlls/gdiplus/gdiplus_private.h
View file @
5433969e
...
@@ -78,6 +78,29 @@ static inline REAL deg2rad(REAL degrees)
...
@@ -78,6 +78,29 @@ static inline REAL deg2rad(REAL degrees)
return
M_PI
*
degrees
/
180
.
0
;
return
M_PI
*
degrees
/
180
.
0
;
}
}
static
inline
ARGB
color_over
(
ARGB
bg
,
ARGB
fg
)
{
BYTE
b
,
g
,
r
,
a
;
BYTE
bg_alpha
,
fg_alpha
;
fg_alpha
=
(
fg
>>
24
)
&
0xff
;
if
(
fg_alpha
==
0xff
)
return
fg
;
if
(
fg_alpha
==
0
)
return
bg
;
bg_alpha
=
(((
bg
>>
24
)
&
0xff
)
*
(
0xff
-
fg_alpha
))
/
0xff
;
if
(
bg_alpha
==
0
)
return
fg
;
a
=
bg_alpha
+
fg_alpha
;
b
=
((
bg
&
0xff
)
*
bg_alpha
+
(
fg
&
0xff
)
*
fg_alpha
)
*
0xff
/
a
;
g
=
(((
bg
>>
8
)
&
0xff
)
*
bg_alpha
+
((
fg
>>
8
)
&
0xff
)
*
fg_alpha
)
*
0xff
/
a
;
r
=
(((
bg
>>
16
)
&
0xff
)
*
bg_alpha
+
((
fg
>>
16
)
&
0xff
)
*
fg_alpha
)
*
0xff
/
a
;
return
(
a
<<
24
)
|
(
r
<<
16
)
|
(
g
<<
8
)
|
b
;
}
extern
const
char
*
debugstr_rectf
(
CONST
RectF
*
rc
);
extern
const
char
*
debugstr_rectf
(
CONST
RectF
*
rc
);
extern
const
char
*
debugstr_pointf
(
CONST
PointF
*
pt
);
extern
const
char
*
debugstr_pointf
(
CONST
PointF
*
pt
);
...
...
dlls/gdiplus/graphics.c
View file @
5433969e
This diff is collapsed.
Click to expand it.
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