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
c5baf8f2
Commit
c5baf8f2
authored
Apr 27, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Apr 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Merge the IWineD3DSurface::SetFormat() implementations.
parent
92120cb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
17 deletions
+4
-17
surface.c
dlls/wined3d/surface.c
+4
-17
No files found.
dlls/wined3d/surface.c
View file @
c5baf8f2
...
...
@@ -2712,9 +2712,12 @@ static HRESULT WINAPI IWineD3DBaseSurfaceImpl_SetFormat(IWineD3DSurface *iface,
surface
->
resource
.
size
=
wined3d_format_calculate_size
(
format
,
surface
->
resource
.
device
->
surface_alignment
,
surface
->
pow2Width
,
surface
->
pow2Height
);
surface
->
flags
|=
(
WINED3DFMT_D16_LOCKABLE
==
format_id
)
?
SFLAG_LOCKABLE
:
0
;
surface
->
flags
&=
~
(
SFLAG_ALLOCATED
|
SFLAG_SRGBALLOCATED
);
surface
->
resource
.
format
=
format
;
TRACE
(
"size %u, byte_count %u
\n
"
,
surface
->
resource
.
size
,
format
->
byte_count
);
TRACE
(
"glFormat %#x, glInternal %#x, glType %#x.
\n
"
,
format
->
glFormat
,
format
->
glInternal
,
format
->
glType
);
return
WINED3D_OK
;
}
...
...
@@ -4993,22 +4996,6 @@ BOOL palette9_changed(IWineD3DSurfaceImpl *This)
return
TRUE
;
}
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_SetFormat
(
IWineD3DSurface
*
iface
,
enum
wined3d_format_id
format
)
{
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
HRESULT
hr
;
TRACE
(
"(%p) : Calling base function first
\n
"
,
This
);
hr
=
IWineD3DBaseSurfaceImpl_SetFormat
(
iface
,
format
);
if
(
SUCCEEDED
(
hr
))
{
This
->
flags
&=
~
(
SFLAG_ALLOCATED
|
SFLAG_SRGBALLOCATED
);
TRACE
(
"(%p) : glFormat %d, glFormatInternal %d, glType %d
\n
"
,
This
,
This
->
resource
.
format
->
glFormat
,
This
->
resource
.
format
->
glInternal
,
This
->
resource
.
format
->
glType
);
}
return
hr
;
}
void
flip_surface
(
IWineD3DSurfaceImpl
*
front
,
IWineD3DSurfaceImpl
*
back
)
{
/* Flip the surface contents */
...
...
@@ -7114,7 +7101,7 @@ const IWineD3DSurfaceVtbl IWineD3DSurface_Vtbl =
IWineD3DBaseSurfaceImpl_SetClipper
,
IWineD3DBaseSurfaceImpl_GetClipper
,
/* Internal use: */
IWineD3DSurfaceImpl_SetFormat
,
IWineD3D
Base
SurfaceImpl_SetFormat
,
};
static
HRESULT
ffp_blit_alloc
(
IWineD3DDeviceImpl
*
device
)
{
return
WINED3D_OK
;
}
...
...
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