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
cde2fbb0
Commit
cde2fbb0
authored
Oct 05, 2015
by
Michael Müller
Committed by
Alexandre Julliard
Oct 05, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Make BitBlt and StretchDIBits hotpatchable.
Signed-off-by:
Michael Müller
<
michael@fds-team.de
>
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
parent
132b5f86
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
bitblt.c
dlls/gdi32/bitblt.c
+2
-2
dib.c
dlls/gdi32/dib.c
+6
-3
No files found.
dlls/gdi32/bitblt.c
View file @
cde2fbb0
...
...
@@ -559,8 +559,8 @@ BOOL WINAPI PatBlt( HDC hdc, INT left, INT top, INT width, INT height, DWORD rop
/***********************************************************************
* BitBlt (GDI32.@)
*/
BOOL
WINAPI
BitBlt
(
HDC
hdcDst
,
INT
xDst
,
INT
yDst
,
INT
width
,
INT
height
,
HDC
hdcSrc
,
INT
xSrc
,
INT
ySrc
,
DWORD
rop
)
BOOL
WINAPI
DECLSPEC_HOTPATCH
BitBlt
(
HDC
hdcDst
,
INT
xDst
,
INT
yDst
,
INT
width
,
INT
height
,
HDC
hdcSrc
,
INT
xSrc
,
INT
ySrc
,
DWORD
rop
)
{
if
(
!
rop_uses_src
(
rop
))
return
PatBlt
(
hdcDst
,
xDst
,
yDst
,
width
,
height
,
rop
);
else
return
StretchBlt
(
hdcDst
,
xDst
,
yDst
,
width
,
height
,
...
...
dlls/gdi32/dib.c
View file @
cde2fbb0
...
...
@@ -59,6 +59,8 @@
Search for "Bitmap Structures" in MSDN
*/
#include "config.h"
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
...
...
@@ -602,9 +604,10 @@ done:
/***********************************************************************
* StretchDIBits (GDI32.@)
*/
INT
WINAPI
StretchDIBits
(
HDC
hdc
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
const
void
*
bits
,
const
BITMAPINFO
*
bmi
,
UINT
coloruse
,
DWORD
rop
)
INT
WINAPI
DECLSPEC_HOTPATCH
StretchDIBits
(
HDC
hdc
,
INT
xDst
,
INT
yDst
,
INT
widthDst
,
INT
heightDst
,
INT
xSrc
,
INT
ySrc
,
INT
widthSrc
,
INT
heightSrc
,
const
void
*
bits
,
const
BITMAPINFO
*
bmi
,
UINT
coloruse
,
DWORD
rop
)
{
char
buffer
[
FIELD_OFFSET
(
BITMAPINFO
,
bmiColors
[
256
]
)];
BITMAPINFO
*
info
=
(
BITMAPINFO
*
)
buffer
;
...
...
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