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
aed85222
Commit
aed85222
authored
Dec 07, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Dec 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Rename the wined3d_adapter "num" field to "ordinal".
This makes it consistent with dxgi_adapter.
parent
8a833a2d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
device.c
dlls/wined3d/device.c
+3
-3
directx.c
dlls/wined3d/directx.c
+2
-2
swapchain_base.c
dlls/wined3d/swapchain_base.c
+1
-1
wined3d_private.h
dlls/wined3d/wined3d_private.h
+1
-1
No files found.
dlls/wined3d/device.c
View file @
aed85222
...
...
@@ -1110,7 +1110,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSwapChain(IWineD3DDevice *iface,
}
/* Get info on the current display setup */
IWineD3D_GetAdapterDisplayMode
(
This
->
wineD3D
,
This
->
adapter
->
num
,
&
Mode
);
IWineD3D_GetAdapterDisplayMode
(
This
->
wineD3D
,
This
->
adapter
->
ordinal
,
&
Mode
);
object
->
orig_width
=
Mode
.
Width
;
object
->
orig_height
=
Mode
.
Height
;
object
->
orig_fmt
=
Mode
.
Format
;
...
...
@@ -6615,10 +6615,10 @@ static BOOL is_display_mode_supported(IWineD3DDeviceImpl *This, const WINED3DPRE
if
(
!
pp
->
BackBufferWidth
)
return
TRUE
;
if
(
!
pp
->
BackBufferHeight
)
return
TRUE
;
count
=
IWineD3D_GetAdapterModeCount
(
This
->
wineD3D
,
This
->
adapter
->
num
,
WINED3DFMT_UNKNOWN
);
count
=
IWineD3D_GetAdapterModeCount
(
This
->
wineD3D
,
This
->
adapter
->
ordinal
,
WINED3DFMT_UNKNOWN
);
for
(
i
=
0
;
i
<
count
;
i
++
)
{
memset
(
&
m
,
0
,
sizeof
(
m
));
hr
=
IWineD3D_EnumAdapterModes
(
This
->
wineD3D
,
This
->
adapter
->
num
,
WINED3DFMT_UNKNOWN
,
i
,
&
m
);
hr
=
IWineD3D_EnumAdapterModes
(
This
->
wineD3D
,
This
->
adapter
->
ordinal
,
WINED3DFMT_UNKNOWN
,
i
,
&
m
);
if
(
FAILED
(
hr
))
{
ERR
(
"EnumAdapterModes failed
\n
"
);
}
...
...
dlls/wined3d/directx.c
View file @
aed85222
...
...
@@ -4676,7 +4676,7 @@ BOOL InitAdapters(IWineD3DImpl *This)
HDC
hdc
;
TRACE
(
"Initializing default adapter
\n
"
);
adapter
->
num
=
0
;
adapter
->
ordinal
=
0
;
adapter
->
monitorPoint
.
x
=
-
1
;
adapter
->
monitorPoint
.
y
=
-
1
;
...
...
@@ -4884,7 +4884,7 @@ BOOL InitAdapters(IWineD3DImpl *This)
nogl_adapter:
/* Initialize an adapter for ddraw-only memory counting */
memset
(
This
->
adapters
,
0
,
sizeof
(
This
->
adapters
));
This
->
adapters
[
0
].
num
=
0
;
This
->
adapters
[
0
].
ordinal
=
0
;
This
->
adapters
[
0
].
opengl
=
FALSE
;
This
->
adapters
[
0
].
monitorPoint
.
x
=
-
1
;
This
->
adapters
[
0
].
monitorPoint
.
y
=
-
1
;
...
...
dlls/wined3d/swapchain_base.c
View file @
aed85222
...
...
@@ -139,7 +139,7 @@ HRESULT WINAPI IWineD3DBaseSwapChainImpl_GetDisplayMode(IWineD3DSwapChain *iface
HRESULT
hr
;
TRACE
(
"(%p)->(%p): Calling GetAdapterDisplayMode
\n
"
,
This
,
pMode
);
hr
=
IWineD3D_GetAdapterDisplayMode
(
This
->
wineD3DDevice
->
wineD3D
,
This
->
wineD3DDevice
->
adapter
->
num
,
pMode
);
hr
=
IWineD3D_GetAdapterDisplayMode
(
This
->
wineD3DDevice
->
wineD3D
,
This
->
wineD3DDevice
->
adapter
->
ordinal
,
pMode
);
TRACE
(
"(%p) : returning w(%d) h(%d) rr(%d) fmt(%u,%s)
\n
"
,
This
,
pMode
->
Width
,
pMode
->
Height
,
pMode
->
RefreshRate
,
pMode
->
Format
,
debug_d3dformat
(
pMode
->
Format
));
...
...
dlls/wined3d/wined3d_private.h
View file @
aed85222
...
...
@@ -1324,7 +1324,7 @@ struct wined3d_driver_info
/* The adapter structure */
struct
wined3d_adapter
{
UINT
num
;
UINT
ordinal
;
BOOL
opengl
;
POINT
monitorPoint
;
struct
wined3d_gl_info
gl_info
;
...
...
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