mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
60 lines
2.4 KiB
Diff
60 lines
2.4 KiB
Diff
From 3a9c4ea762e13dcd7df42008f9a55eeeac702056 Mon Sep 17 00:00:00 2001
|
|
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
|
Date: Fri, 2 Oct 2015 17:26:58 +0200
|
|
Subject: gdi32: Mark some functions as hotpatchable.
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
Signed-off-by: Michael Müller <michael@fds-team.de>
|
|
---
|
|
dlls/gdi32/bitblt.c | 4 ++--
|
|
dlls/gdi32/dib.c | 9 ++++++---
|
|
2 files changed, 8 insertions(+), 5 deletions(-)
|
|
|
|
diff --git a/dlls/gdi32/bitblt.c b/dlls/gdi32/bitblt.c
|
|
index 08ebfd9..d427070 100644
|
|
--- a/dlls/gdi32/bitblt.c
|
|
+++ b/dlls/gdi32/bitblt.c
|
|
@@ -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,
|
|
diff --git a/dlls/gdi32/dib.c b/dlls/gdi32/dib.c
|
|
index 708a9a8..2817ede 100644
|
|
--- a/dlls/gdi32/dib.c
|
|
+++ b/dlls/gdi32/dib.c
|
|
@@ -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;
|
|
--
|
|
2.5.1
|
|
|