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
7e8e7ece
Commit
7e8e7ece
authored
Aug 04, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 05, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Always pass a non-NULL rectangle to surface_color_fill() in wined3d_device_color_fill().
parent
831801dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
device.c
dlls/wined3d/device.c
+8
-0
No files found.
dlls/wined3d/device.c
View file @
7e8e7ece
...
...
@@ -4981,6 +4981,8 @@ HRESULT CDECL wined3d_device_delete_patch(struct wined3d_device *device, UINT ha
HRESULT
CDECL
wined3d_device_color_fill
(
struct
wined3d_device
*
device
,
struct
wined3d_surface
*
surface
,
const
RECT
*
rect
,
const
WINED3DCOLORVALUE
*
color
)
{
RECT
r
;
TRACE
(
"device %p, surface %p, rect %s, color {%.8e, %.8e, %.8e, %.8e}.
\n
"
,
device
,
surface
,
wine_dbgstr_rect
(
rect
),
color
->
r
,
color
->
g
,
color
->
b
,
color
->
a
);
...
...
@@ -4991,6 +4993,12 @@ HRESULT CDECL wined3d_device_color_fill(struct wined3d_device *device,
return
WINED3DERR_INVALIDCALL
;
}
if
(
!
rect
)
{
SetRect
(
&
r
,
0
,
0
,
surface
->
resource
.
width
,
surface
->
resource
.
height
);
rect
=
&
r
;
}
return
surface_color_fill
(
surface
,
rect
,
color
);
}
...
...
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