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
a2a58a21
Commit
a2a58a21
authored
May 20, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
May 20, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Translate front buffer coordinates in surface_blt_to_drawable().
parent
e5c76f73
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
surface.c
dlls/wined3d/surface.c
+18
-0
No files found.
dlls/wined3d/surface.c
View file @
a2a58a21
...
...
@@ -4350,6 +4350,24 @@ static inline void surface_blt_to_drawable(IWineD3DSurfaceImpl *This, const RECT
dst_rect
=
src_rect
;
}
if
((
This
->
Flags
&
SFLAG_SWAPCHAIN
)
&&
This
==
((
IWineD3DSwapChainImpl
*
)
This
->
container
)
->
front_buffer
)
{
RECT
windowsize
;
POINT
offset
=
{
0
,
0
};
UINT
h
;
ClientToScreen
(
context
->
win_handle
,
&
offset
);
GetClientRect
(
context
->
win_handle
,
&
windowsize
);
h
=
windowsize
.
bottom
-
windowsize
.
top
;
dst_rect
.
left
-=
offset
.
x
;
dst_rect
.
right
-=
offset
.
x
;
dst_rect
.
top
-=
offset
.
y
;
dst_rect
.
bottom
-=
offset
.
y
;
dst_rect
.
top
+=
This
->
currentDesc
.
Height
-
h
;
dst_rect
.
bottom
+=
This
->
currentDesc
.
Height
-
h
;
}
device
->
blitter
->
set_shader
((
IWineD3DDevice
*
)
device
,
This
);
ENTER_GL
();
...
...
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