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
c0aa053a
Commit
c0aa053a
authored
Jul 05, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Jul 06, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Pass a state pointer instead of a device pointer to device_get_draw_rect().
parent
a7120866
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
16 deletions
+13
-16
device.c
dlls/wined3d/device.c
+1
-14
drawprim.c
dlls/wined3d/drawprim.c
+1
-1
utils.c
dlls/wined3d/utils.c
+10
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/device.c
View file @
c0aa053a
...
...
@@ -557,19 +557,6 @@ void device_context_remove(struct wined3d_device *device, struct wined3d_context
device
->
contexts
=
new_array
;
}
void
device_get_draw_rect
(
struct
wined3d_device
*
device
,
RECT
*
rect
)
{
struct
wined3d_stateblock
*
stateblock
=
device
->
stateBlock
;
WINED3DVIEWPORT
*
vp
=
&
stateblock
->
state
.
viewport
;
SetRect
(
rect
,
vp
->
X
,
vp
->
Y
,
vp
->
X
+
vp
->
Width
,
vp
->
Y
+
vp
->
Height
);
if
(
stateblock
->
state
.
render_states
[
WINED3DRS_SCISSORTESTENABLE
])
{
IntersectRect
(
rect
,
rect
,
&
stateblock
->
state
.
scissor_rect
);
}
}
/* Do not call while under the GL lock. */
void
device_switch_onscreen_ds
(
struct
wined3d_device
*
device
,
struct
wined3d_context
*
context
,
struct
wined3d_surface
*
depth_stencil
)
...
...
@@ -4040,7 +4027,7 @@ HRESULT CDECL wined3d_device_clear(struct wined3d_device *device, DWORD rect_cou
}
}
device_get_draw_rect
(
devic
e
,
&
draw_rect
);
wined3d_get_draw_rect
(
&
device
->
stateBlock
->
stat
e
,
&
draw_rect
);
return
device_clear_render_targets
(
device
,
device
->
adapter
->
gl_info
.
limits
.
buffers
,
&
device
->
fb
,
rect_count
,
rects
,
...
...
dlls/wined3d/drawprim.c
View file @
c0aa053a
...
...
@@ -639,7 +639,7 @@ void drawPrimitive(struct wined3d_device *device, UINT index_count, UINT StartId
else
SetRectEmpty
(
&
current_rect
);
device_get_draw_rect
(
devic
e
,
&
draw_rect
);
wined3d_get_draw_rect
(
stat
e
,
&
draw_rect
);
IntersectRect
(
&
r
,
&
draw_rect
,
&
current_rect
);
if
(
!
EqualRect
(
&
r
,
&
draw_rect
))
...
...
dlls/wined3d/utils.c
View file @
c0aa053a
...
...
@@ -3246,3 +3246,13 @@ const struct blit_shader *wined3d_select_blitter(const struct wined3d_gl_info *g
return
NULL
;
}
void
wined3d_get_draw_rect
(
const
struct
wined3d_state
*
state
,
RECT
*
rect
)
{
const
WINED3DVIEWPORT
*
vp
=
&
state
->
viewport
;
SetRect
(
rect
,
vp
->
X
,
vp
->
Y
,
vp
->
X
+
vp
->
Width
,
vp
->
Y
+
vp
->
Height
);
if
(
state
->
render_states
[
WINED3DRS_SCISSORTESTENABLE
])
IntersectRect
(
rect
,
rect
,
&
state
->
scissor_rect
);
}
dlls/wined3d/wined3d_private.h
View file @
c0aa053a
...
...
@@ -1596,6 +1596,7 @@ void gen_ffp_frag_op(const struct wined3d_device *device, const struct wined3d_s
const
struct
ffp_frag_desc
*
find_ffp_frag_shader
(
const
struct
wine_rb_tree
*
fragment_shaders
,
const
struct
ffp_frag_settings
*
settings
)
DECLSPEC_HIDDEN
;
void
add_ffp_frag_shader
(
struct
wine_rb_tree
*
shaders
,
struct
ffp_frag_desc
*
desc
)
DECLSPEC_HIDDEN
;
void
wined3d_get_draw_rect
(
const
struct
wined3d_state
*
state
,
RECT
*
rect
)
DECLSPEC_HIDDEN
;
struct
wined3d
{
...
...
@@ -1749,7 +1750,6 @@ HRESULT device_clear_render_targets(struct wined3d_device *device, UINT rt_count
const
WINED3DCOLORVALUE
*
color
,
float
depth
,
DWORD
stencil
)
DECLSPEC_HIDDEN
;
BOOL
device_context_add
(
struct
wined3d_device
*
device
,
struct
wined3d_context
*
context
)
DECLSPEC_HIDDEN
;
void
device_context_remove
(
struct
wined3d_device
*
device
,
struct
wined3d_context
*
context
)
DECLSPEC_HIDDEN
;
void
device_get_draw_rect
(
struct
wined3d_device
*
device
,
RECT
*
rect
)
DECLSPEC_HIDDEN
;
HRESULT
device_init
(
struct
wined3d_device
*
device
,
struct
wined3d
*
wined3d
,
UINT
adapter_idx
,
WINED3DDEVTYPE
device_type
,
HWND
focus_window
,
DWORD
flags
,
BYTE
surface_alignment
,
struct
wined3d_device_parent
*
device_parent
)
DECLSPEC_HIDDEN
;
...
...
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