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
00598c3e
Commit
00598c3e
authored
Apr 08, 2010
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Apr 09, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Let d3dfmt_get_conv return a wined3d_format_desc.
parent
4ce99545
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
device.c
dlls/wined3d/device.c
+2
-3
surface.c
dlls/wined3d/surface.c
+0
-0
wined3d_private.h
dlls/wined3d/wined3d_private.h
+3
-2
No files found.
dlls/wined3d/device.c
View file @
00598c3e
...
...
@@ -5173,8 +5173,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
UINT
src_w
,
src_h
;
UINT
dst_x
,
dst_y
;
DWORD
sampler
;
GLenum
dummy
;
int
bpp
;
struct
wined3d_format_desc
dummy_desc
;
TRACE
(
"iface %p, src_surface %p, src_rect %s, dst_surface %p, dst_point %s"
,
iface
,
src_surface
,
wine_dbgstr_rect
(
src_rect
),
...
...
@@ -5203,7 +5202,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_UpdateSurface(IWineD3DDevice *iface,
* surface to the destination's sysmem copy. If surface conversion is
* needed, use BltFast instead to copy in sysmem and use regular surface
* loading. */
d3dfmt_get_conv
(
dst_impl
,
FALSE
,
TRUE
,
&
dummy
,
&
dummy
,
&
dummy
,
&
convert
,
&
bpp
,
FALSE
);
d3dfmt_get_conv
(
dst_impl
,
FALSE
,
TRUE
,
&
dummy
_desc
,
&
convert
,
FALSE
);
if
(
convert
!=
NO_CONVERSION
)
return
IWineD3DSurface_BltFast
(
dst_surface
,
dst_x
,
dst_y
,
src_surface
,
src_rect
,
0
);
...
...
dlls/wined3d/surface.c
View file @
00598c3e
This diff is collapsed.
Click to expand it.
dlls/wined3d/wined3d_private.h
View file @
00598c3e
...
...
@@ -2241,8 +2241,8 @@ typedef enum {
CONVERT_D24FS8
,
}
CONVERT_TYPES
;
HRESULT
d3dfmt_get_conv
(
IWineD3DSurfaceImpl
*
This
,
BOOL
need_alpha_ck
,
BOOL
use_texturing
,
GLenum
*
format
,
GLenum
*
internal
,
GLenum
*
type
,
CONVERT_TYPES
*
convert
,
int
*
target_bpp
,
BOOL
srgb_mode
)
DECLSPEC_HIDDEN
;
HRESULT
d3dfmt_get_conv
(
IWineD3DSurfaceImpl
*
This
,
BOOL
need_alpha_ck
,
BOOL
use_texturing
,
struct
wined3d_format_desc
*
desc
,
CONVERT_TYPES
*
convert
,
BOOL
srgb_mode
)
DECLSPEC_HIDDEN
;
void
d3dfmt_p8_init_palette
(
IWineD3DSurfaceImpl
*
This
,
BYTE
table
[
256
][
4
],
BOOL
colorkey
)
DECLSPEC_HIDDEN
;
BOOL
palette9_changed
(
IWineD3DSurfaceImpl
*
This
)
DECLSPEC_HIDDEN
;
...
...
@@ -3007,6 +3007,7 @@ struct wined3d_format_desc
GLint
rtInternal
;
GLint
glFormat
;
GLint
glType
;
UINT
conv_byte_count
;
unsigned
int
Flags
;
float
heightscale
;
struct
color_fixup_desc
color_fixup
;
...
...
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