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
2e1c0d83
Commit
2e1c0d83
authored
Nov 21, 2011
by
Henri Verbeet
Committed by
Alexandre Julliard
Nov 22, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of the WINED3DGAMMARAMP typedef.
parent
be8917cd
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
24 additions
and
23 deletions
+24
-23
device.c
dlls/d3d8/device.c
+4
-4
device.c
dlls/d3d9/device.c
+4
-4
surface.c
dlls/ddraw/surface.c
+5
-4
device.c
dlls/wined3d/device.c
+2
-2
swapchain.c
dlls/wined3d/swapchain.c
+2
-2
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
wined3d.h
include/wine/wined3d.h
+6
-6
No files found.
dlls/d3d8/device.c
View file @
2e1c0d83
...
...
@@ -661,9 +661,9 @@ static void WINAPI IDirect3DDevice8Impl_SetGammaRamp(IDirect3DDevice8 *iface, DW
TRACE
(
"iface %p, flags %#x, ramp %p.
\n
"
,
iface
,
Flags
,
pRamp
);
/* Note: D3DGAMMARAMP is compatible with
WINED3DGAMMARAMP
*/
/* Note: D3DGAMMARAMP is compatible with
struct wined3d_gamma_ramp.
*/
wined3d_mutex_lock
();
wined3d_device_set_gamma_ramp
(
This
->
wined3d_device
,
0
,
Flags
,
(
const
WINED3DGAMMARAMP
*
)
pRamp
);
wined3d_device_set_gamma_ramp
(
This
->
wined3d_device
,
0
,
Flags
,
(
const
struct
wined3d_gamma_ramp
*
)
pRamp
);
wined3d_mutex_unlock
();
}
...
...
@@ -673,9 +673,9 @@ static void WINAPI IDirect3DDevice8Impl_GetGammaRamp(IDirect3DDevice8 *iface, D3
TRACE
(
"iface %p, ramp %p.
\n
"
,
iface
,
pRamp
);
/* Note: D3DGAMMARAMP is compatible with
WINED3DGAMMARAMP
*/
/* Note: D3DGAMMARAMP is compatible with
struct wined3d_gamma_ramp.
*/
wined3d_mutex_lock
();
wined3d_device_get_gamma_ramp
(
This
->
wined3d_device
,
0
,
(
WINED3DGAMMARAMP
*
)
pRamp
);
wined3d_device_get_gamma_ramp
(
This
->
wined3d_device
,
0
,
(
struct
wined3d_gamma_ramp
*
)
pRamp
);
wined3d_mutex_unlock
();
}
...
...
dlls/d3d9/device.c
View file @
2e1c0d83
...
...
@@ -668,9 +668,9 @@ static void WINAPI IDirect3DDevice9Impl_SetGammaRamp(IDirect3DDevice9Ex *iface,
TRACE
(
"iface %p, swapchain %u, flags %#x, ramp %p.
\n
"
,
iface
,
iSwapChain
,
Flags
,
pRamp
);
/* Note: D3DGAMMARAMP is compatible with
WINED3DGAMMARAMP
*/
/* Note: D3DGAMMARAMP is compatible with
struct wined3d_gamma_ramp.
*/
wined3d_mutex_lock
();
wined3d_device_set_gamma_ramp
(
This
->
wined3d_device
,
iSwapChain
,
Flags
,
(
const
WINED3DGAMMARAMP
*
)
pRamp
);
wined3d_device_set_gamma_ramp
(
This
->
wined3d_device
,
iSwapChain
,
Flags
,
(
const
struct
wined3d_gamma_ramp
*
)
pRamp
);
wined3d_mutex_unlock
();
}
...
...
@@ -681,9 +681,9 @@ static void WINAPI IDirect3DDevice9Impl_GetGammaRamp(IDirect3DDevice9Ex *iface,
TRACE
(
"iface %p, swapchain %u, ramp %p.
\n
"
,
iface
,
iSwapChain
,
pRamp
);
/* Note: D3DGAMMARAMP is compatible with
WINED3DGAMMARAMP
*/
/* Note: D3DGAMMARAMP is compatible with
struct wined3d_gamma_ramp.
*/
wined3d_mutex_lock
();
wined3d_device_get_gamma_ramp
(
This
->
wined3d_device
,
iSwapChain
,
(
WINED3DGAMMARAMP
*
)
pRamp
);
wined3d_device_get_gamma_ramp
(
This
->
wined3d_device
,
iSwapChain
,
(
struct
wined3d_gamma_ramp
*
)
pRamp
);
wined3d_mutex_unlock
();
}
...
...
dlls/ddraw/surface.c
View file @
2e1c0d83
...
...
@@ -4502,8 +4502,8 @@ static HRESULT WINAPI ddraw_gamma_control_GetGammaRamp(IDirectDrawGammaControl *
wined3d_mutex_lock
();
if
(
surface
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
{
/* Note: DDGAMMARAMP is compatible with
WINED3DGAMMARAMP
. */
wined3d_device_get_gamma_ramp
(
surface
->
ddraw
->
wined3d_device
,
0
,
(
WINED3DGAMMARAMP
*
)
gamma_ramp
);
/* Note: DDGAMMARAMP is compatible with
struct wined3d_gamma_ramp
. */
wined3d_device_get_gamma_ramp
(
surface
->
ddraw
->
wined3d_device
,
0
,
(
struct
wined3d_gamma_ramp
*
)
gamma_ramp
);
}
else
{
...
...
@@ -4544,8 +4544,9 @@ static HRESULT WINAPI ddraw_gamma_control_SetGammaRamp(IDirectDrawGammaControl *
wined3d_mutex_lock
();
if
(
surface
->
surface_desc
.
ddsCaps
.
dwCaps
&
DDSCAPS_PRIMARYSURFACE
)
{
/* Note: DDGAMMARAMP is compatible with WINED3DGAMMARAMP */
wined3d_device_set_gamma_ramp
(
surface
->
ddraw
->
wined3d_device
,
0
,
flags
,
(
WINED3DGAMMARAMP
*
)
gamma_ramp
);
/* Note: DDGAMMARAMP is compatible with struct wined3d_gamma_ramp. */
wined3d_device_set_gamma_ramp
(
surface
->
ddraw
->
wined3d_device
,
0
,
flags
,
(
struct
wined3d_gamma_ramp
*
)
gamma_ramp
);
}
else
{
...
...
dlls/wined3d/device.c
View file @
2e1c0d83
...
...
@@ -5713,7 +5713,7 @@ HRESULT CDECL wined3d_device_get_creation_parameters(const struct wined3d_device
}
void
CDECL
wined3d_device_set_gamma_ramp
(
const
struct
wined3d_device
*
device
,
UINT
swapchain_idx
,
DWORD
flags
,
const
WINED3DGAMMARAMP
*
ramp
)
UINT
swapchain_idx
,
DWORD
flags
,
const
struct
wined3d_gamma_ramp
*
ramp
)
{
struct
wined3d_swapchain
*
swapchain
;
...
...
@@ -5728,7 +5728,7 @@ void CDECL wined3d_device_set_gamma_ramp(const struct wined3d_device *device,
}
void
CDECL
wined3d_device_get_gamma_ramp
(
const
struct
wined3d_device
*
device
,
UINT
swapchain_idx
,
WINED3DGAMMARAMP
*
ramp
)
UINT
swapchain_idx
,
struct
wined3d_gamma_ramp
*
ramp
)
{
struct
wined3d_swapchain
*
swapchain
;
...
...
dlls/wined3d/swapchain.c
View file @
2e1c0d83
...
...
@@ -254,7 +254,7 @@ HRESULT CDECL wined3d_swapchain_get_present_parameters(const struct wined3d_swap
}
HRESULT
CDECL
wined3d_swapchain_set_gamma_ramp
(
const
struct
wined3d_swapchain
*
swapchain
,
DWORD
flags
,
const
WINED3DGAMMARAMP
*
ramp
)
DWORD
flags
,
const
struct
wined3d_gamma_ramp
*
ramp
)
{
HDC
dc
;
...
...
@@ -271,7 +271,7 @@ HRESULT CDECL wined3d_swapchain_set_gamma_ramp(const struct wined3d_swapchain *s
}
HRESULT
CDECL
wined3d_swapchain_get_gamma_ramp
(
const
struct
wined3d_swapchain
*
swapchain
,
WINED3DGAMMARAMP
*
ramp
)
struct
wined3d_gamma_ramp
*
ramp
)
{
HDC
dc
;
...
...
dlls/wined3d/wined3d_private.h
View file @
2e1c0d83
...
...
@@ -2444,7 +2444,7 @@ struct wined3d_swapchain
WINED3DPRESENT_PARAMETERS
presentParms
;
DWORD
orig_width
,
orig_height
;
enum
wined3d_format_id
orig_fmt
;
WINED3DGAMMARAMP
orig_gamma
;
struct
wined3d_gamma_ramp
orig_gamma
;
BOOL
render_to_fbo
;
const
struct
wined3d_format
*
ds_format
;
...
...
include/wine/wined3d.h
View file @
2e1c0d83
...
...
@@ -1583,12 +1583,12 @@ struct wined3d_viewport
float
max_z
;
};
typedef
struct
_WINED3DGAMMARAMP
struct
wined3d_gamma_ramp
{
WORD
red
[
256
];
WORD
green
[
256
];
WORD
blue
[
256
];
}
WINED3DGAMMARAMP
;
};
typedef
struct
_WINED3DLINEPATTERN
{
...
...
@@ -2211,7 +2211,7 @@ HRESULT __cdecl wined3d_device_get_display_mode(const struct wined3d_device *dev
HRESULT
__cdecl
wined3d_device_get_front_buffer_data
(
const
struct
wined3d_device
*
device
,
UINT
swapchain_idx
,
struct
wined3d_surface
*
dst_surface
);
void
__cdecl
wined3d_device_get_gamma_ramp
(
const
struct
wined3d_device
*
device
,
UINT
swapchain_idx
,
WINED3DGAMMARAMP
*
ramp
);
UINT
swapchain_idx
,
struct
wined3d_gamma_ramp
*
ramp
);
HRESULT
__cdecl
wined3d_device_get_index_buffer
(
const
struct
wined3d_device
*
device
,
struct
wined3d_buffer
**
index_buffer
);
HRESULT
__cdecl
wined3d_device_get_light
(
const
struct
wined3d_device
*
device
,
...
...
@@ -2290,7 +2290,7 @@ HRESULT __cdecl wined3d_device_set_dialog_box_mode(struct wined3d_device *device
HRESULT
__cdecl
wined3d_device_set_display_mode
(
struct
wined3d_device
*
device
,
UINT
swapchain_idx
,
const
struct
wined3d_display_mode
*
mode
);
void
__cdecl
wined3d_device_set_gamma_ramp
(
const
struct
wined3d_device
*
device
,
UINT
swapchain_idx
,
DWORD
flags
,
const
WINED3DGAMMARAMP
*
ramp
);
UINT
swapchain_idx
,
DWORD
flags
,
const
struct
wined3d_gamma_ramp
*
ramp
);
HRESULT
__cdecl
wined3d_device_set_index_buffer
(
struct
wined3d_device
*
device
,
struct
wined3d_buffer
*
index_buffer
,
enum
wined3d_format_id
format_id
);
HRESULT
__cdecl
wined3d_device_set_light
(
struct
wined3d_device
*
device
,
...
...
@@ -2457,7 +2457,7 @@ HRESULT __cdecl wined3d_swapchain_get_display_mode(const struct wined3d_swapchai
HRESULT
__cdecl
wined3d_swapchain_get_front_buffer_data
(
const
struct
wined3d_swapchain
*
swapchain
,
struct
wined3d_surface
*
dst_surface
);
HRESULT
__cdecl
wined3d_swapchain_get_gamma_ramp
(
const
struct
wined3d_swapchain
*
swapchain
,
WINED3DGAMMARAMP
*
ramp
);
struct
wined3d_gamma_ramp
*
ramp
);
void
*
__cdecl
wined3d_swapchain_get_parent
(
const
struct
wined3d_swapchain
*
swapchain
);
HRESULT
__cdecl
wined3d_swapchain_get_present_parameters
(
const
struct
wined3d_swapchain
*
swapchain
,
WINED3DPRESENT_PARAMETERS
*
present_parameters
);
...
...
@@ -2468,7 +2468,7 @@ HRESULT __cdecl wined3d_swapchain_present(struct wined3d_swapchain *swapchain,
const
RECT
*
src_rect
,
const
RECT
*
dst_rect
,
HWND
dst_window_override
,
const
RGNDATA
*
dirty_region
,
DWORD
flags
);
HRESULT
__cdecl
wined3d_swapchain_set_gamma_ramp
(
const
struct
wined3d_swapchain
*
swapchain
,
DWORD
flags
,
const
WINED3DGAMMARAMP
*
ramp
);
DWORD
flags
,
const
struct
wined3d_gamma_ramp
*
ramp
);
HRESULT
__cdecl
wined3d_swapchain_set_window
(
struct
wined3d_swapchain
*
swapchain
,
HWND
window
);
HRESULT
__cdecl
wined3d_texture_add_dirty_region
(
struct
wined3d_texture
*
texture
,
...
...
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