Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9c0bf89e
Commit
9c0bf89e
authored
Dec 27, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 28, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Let "SetupForBlit()" figure out the target's width and height on its own.
parent
57ff4b4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
context.c
dlls/wined3d/context.c
+4
-6
No files found.
dlls/wined3d/context.c
View file @
9c0bf89e
...
...
@@ -1624,16 +1624,16 @@ static inline void set_blit_dimension(UINT width, UINT height) {
* Params:
* This: Device to activate the context for
* context: Context to setup
* width: render target width
* height: render target height
*
*****************************************************************************/
/* Context activation is done by the caller. */
static
inline
void
SetupForBlit
(
IWineD3DDeviceImpl
*
This
,
struct
wined3d_context
*
context
,
UINT
width
,
UINT
heigh
t
)
static
void
SetupForBlit
(
IWineD3DDeviceImpl
*
This
,
struct
wined3d_context
*
contex
t
)
{
int
i
;
const
struct
StateEntry
*
StateTable
=
This
->
StateTable
;
const
struct
wined3d_gl_info
*
gl_info
=
context
->
gl_info
;
UINT
width
=
((
IWineD3DSurfaceImpl
*
)
context
->
current_rt
)
->
currentDesc
.
Width
;
UINT
height
=
((
IWineD3DSurfaceImpl
*
)
context
->
current_rt
)
->
currentDesc
.
Height
;
DWORD
sampler
;
TRACE
(
"Setting up context %p for blitting
\n
"
,
context
);
...
...
@@ -2205,9 +2205,7 @@ static void context_apply_state(struct wined3d_context *context, IWineD3DDeviceI
break
;
case
CTXUSAGE_BLIT
:
SetupForBlit
(
device
,
context
,
((
IWineD3DSurfaceImpl
*
)
context
->
current_rt
)
->
currentDesc
.
Width
,
((
IWineD3DSurfaceImpl
*
)
context
->
current_rt
)
->
currentDesc
.
Height
);
SetupForBlit
(
device
,
context
);
break
;
default:
...
...
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