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
6b1e75d2
Commit
6b1e75d2
authored
Dec 13, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11drv: Clipping fix with DIB section copy.
Use the GC of the destination device in X11DRV_DIB_CopyDIBSection so that the clipping region is taken into account.
parent
510c94d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
dib.c
dlls/x11drv/dib.c
+5
-5
No files found.
dlls/x11drv/dib.c
View file @
6b1e75d2
...
...
@@ -4152,7 +4152,7 @@ static void X11DRV_DIB_DoProtectDIBSection( X_PHYSBITMAP *physBitmap, DWORD new_
*/
static
void
X11DRV_DIB_DoCopyDIBSection
(
X_PHYSBITMAP
*
physBitmap
,
BOOL
toDIB
,
void
*
colorMap
,
int
nColorMap
,
Drawable
dest
,
Drawable
dest
,
GC
gc
,
DWORD
xSrc
,
DWORD
ySrc
,
DWORD
xDest
,
DWORD
yDest
,
DWORD
width
,
DWORD
height
)
...
...
@@ -4202,7 +4202,7 @@ static void X11DRV_DIB_DoCopyDIBSection(X_PHYSBITMAP *physBitmap, BOOL toDIB,
/* Hack for now */
descr
.
drawable
=
dest
;
descr
.
gc
=
BITMAP_GC
(
physBitmap
)
;
descr
.
gc
=
gc
;
descr
.
xSrc
=
xSrc
;
descr
.
ySrc
=
ySrc
;
descr
.
xDest
=
xDest
;
...
...
@@ -4280,7 +4280,7 @@ void X11DRV_DIB_CopyDIBSection(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE *physD
}
/* perform the copy */
X11DRV_DIB_DoCopyDIBSection
(
physBitmap
,
FALSE
,
colorMap
,
nColorMap
,
physDevDst
->
drawable
,
xSrc
,
ySrc
,
physDevDst
->
drawable
,
physDevDst
->
gc
,
xSrc
,
ySrc
,
physDevDst
->
org
.
x
+
xDest
,
physDevDst
->
org
.
y
+
yDest
,
width
,
height
);
/* free color mapping */
...
...
@@ -4299,8 +4299,8 @@ static void X11DRV_DIB_DoUpdateDIBSection(X_PHYSBITMAP *physBitmap, BOOL toDIB)
GetObjectW
(
physBitmap
->
hbitmap
,
sizeof
(
bitmap
),
&
bitmap
);
X11DRV_DIB_DoCopyDIBSection
(
physBitmap
,
toDIB
,
physBitmap
->
colorMap
,
physBitmap
->
nColorMap
,
physBitmap
->
pixmap
,
0
,
0
,
0
,
0
,
bitmap
.
bmWidth
,
bitmap
.
bmHeight
);
physBitmap
->
pixmap
,
BITMAP_GC
(
physBitmap
)
,
0
,
0
,
0
,
0
,
bitmap
.
bmWidth
,
bitmap
.
bmHeight
);
}
/***********************************************************************
...
...
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