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
c689280b
Commit
c689280b
authored
Aug 29, 2010
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 30, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Use surface_color_fill() in IWineD3DDeviceImpl_ColorFill().
parent
ecc67757
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
18 deletions
+3
-18
device.c
dlls/wined3d/device.c
+1
-17
surface.c
dlls/wined3d/surface.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-0
No files found.
dlls/wined3d/device.c
View file @
c689280b
...
@@ -5500,7 +5500,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface,
...
@@ -5500,7 +5500,6 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface,
IWineD3DSurface
*
surface
,
const
WINED3DRECT
*
pRect
,
const
WINED3DCOLORVALUE
*
color
)
IWineD3DSurface
*
surface
,
const
WINED3DRECT
*
pRect
,
const
WINED3DCOLORVALUE
*
color
)
{
{
IWineD3DSurfaceImpl
*
s
=
(
IWineD3DSurfaceImpl
*
)
surface
;
IWineD3DSurfaceImpl
*
s
=
(
IWineD3DSurfaceImpl
*
)
surface
;
WINEDDBLTFX
BltFx
;
TRACE
(
"iface %p, surface %p, rect %s, color {%.8e, %.8e, %.8e, %.8e}.
\n
"
,
TRACE
(
"iface %p, surface %p, rect %s, color {%.8e, %.8e, %.8e, %.8e}.
\n
"
,
iface
,
surface
,
wine_dbgstr_rect
((
const
RECT
*
)
pRect
),
iface
,
surface
,
wine_dbgstr_rect
((
const
RECT
*
)
pRect
),
...
@@ -5512,22 +5511,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface,
...
@@ -5512,22 +5511,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_ColorFill(IWineD3DDevice *iface,
return
WINED3DERR_INVALIDCALL
;
return
WINED3DERR_INVALIDCALL
;
}
}
if
(
wined3d_settings
.
offscreen_rendering_mode
==
ORM_FBO
)
return
surface_color_fill
(
s
,
(
const
RECT
*
)
pRect
,
color
);
{
const
RECT
draw_rect
=
{
0
,
0
,
s
->
currentDesc
.
Width
,
s
->
currentDesc
.
Height
};
return
device_clear_render_targets
((
IWineD3DDeviceImpl
*
)
iface
,
1
,
&
s
,
!!
pRect
,
(
const
RECT
*
)
pRect
,
&
draw_rect
,
WINED3DCLEAR_TARGET
,
color
,
0
.
0
f
,
0
);
}
else
{
/* Just forward this to the DirectDraw blitting engine */
memset
(
&
BltFx
,
0
,
sizeof
(
BltFx
));
BltFx
.
dwSize
=
sizeof
(
BltFx
);
BltFx
.
u5
.
dwFillColor
=
wined3d_format_convert_from_float
(
s
->
resource
.
format_desc
,
color
);
return
IWineD3DSurface_Blt
(
surface
,
(
const
RECT
*
)
pRect
,
NULL
,
NULL
,
WINEDDBLT_COLORFILL
,
&
BltFx
,
WINED3DTEXF_POINT
);
}
}
}
static
void
WINAPI
IWineD3DDeviceImpl_ClearRendertargetView
(
IWineD3DDevice
*
iface
,
static
void
WINAPI
IWineD3DDeviceImpl_ClearRendertargetView
(
IWineD3DDevice
*
iface
,
...
...
dlls/wined3d/surface.c
View file @
c689280b
...
@@ -3354,7 +3354,7 @@ static void surface_blt_fbo(IWineD3DDeviceImpl *device, const WINED3DTEXTUREFILT
...
@@ -3354,7 +3354,7 @@ static void surface_blt_fbo(IWineD3DDeviceImpl *device, const WINED3DTEXTUREFILT
context_release
(
context
);
context_release
(
context
);
}
}
static
HRESULT
surface_color_fill
(
IWineD3DSurfaceImpl
*
s
,
const
RECT
*
rect
,
const
WINED3DCOLORVALUE
*
color
)
HRESULT
surface_color_fill
(
IWineD3DSurfaceImpl
*
s
,
const
RECT
*
rect
,
const
WINED3DCOLORVALUE
*
color
)
{
{
IWineD3DDeviceImpl
*
device
=
s
->
resource
.
device
;
IWineD3DDeviceImpl
*
device
=
s
->
resource
.
device
;
const
struct
blit_shader
*
blitter
;
const
struct
blit_shader
*
blitter
;
...
...
dlls/wined3d/wined3d_private.h
View file @
c689280b
...
@@ -2092,6 +2092,7 @@ extern const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl DECLSPEC_HIDDEN;
...
@@ -2092,6 +2092,7 @@ extern const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl DECLSPEC_HIDDEN;
extern
const
IWineD3DSurfaceVtbl
IWineGDISurface_Vtbl
DECLSPEC_HIDDEN
;
extern
const
IWineD3DSurfaceVtbl
IWineGDISurface_Vtbl
DECLSPEC_HIDDEN
;
void
surface_add_dirty_rect
(
IWineD3DSurfaceImpl
*
surface
,
const
RECT
*
dirty_rect
)
DECLSPEC_HIDDEN
;
void
surface_add_dirty_rect
(
IWineD3DSurfaceImpl
*
surface
,
const
RECT
*
dirty_rect
)
DECLSPEC_HIDDEN
;
HRESULT
surface_color_fill
(
IWineD3DSurfaceImpl
*
s
,
const
RECT
*
rect
,
const
WINED3DCOLORVALUE
*
color
)
DECLSPEC_HIDDEN
;
void
surface_gdi_cleanup
(
IWineD3DSurfaceImpl
*
This
)
DECLSPEC_HIDDEN
;
void
surface_gdi_cleanup
(
IWineD3DSurfaceImpl
*
This
)
DECLSPEC_HIDDEN
;
GLenum
surface_get_gl_buffer
(
IWineD3DSurfaceImpl
*
surface
)
DECLSPEC_HIDDEN
;
GLenum
surface_get_gl_buffer
(
IWineD3DSurfaceImpl
*
surface
)
DECLSPEC_HIDDEN
;
HRESULT
surface_init
(
IWineD3DSurfaceImpl
*
surface
,
WINED3DSURFTYPE
surface_type
,
UINT
alignment
,
HRESULT
surface_init
(
IWineD3DSurfaceImpl
*
surface
,
WINED3DSURFTYPE
surface_type
,
UINT
alignment
,
...
...
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