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
5903c5df
Commit
5903c5df
authored
Nov 28, 2005
by
Oliver Stieber
Committed by
Alexandre Julliard
Nov 28, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stop reporting not having swapchain 0 as an error and add an internal
variable instead of modifying a parameter.
parent
c622cd7c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
device.c
dlls/wined3d/device.c
+5
-4
No files found.
dlls/wined3d/device.c
View file @
5903c5df
...
...
@@ -1560,21 +1560,22 @@ UINT WINAPI IWineD3DDeviceImpl_GetNumberOfSwapChains(IWineD3DDevice *iface)
HRESULT
WINAPI
IWineD3DDeviceImpl_GetSwapChain
(
IWineD3DDevice
*
iface
,
UINT
iSwapChain
,
IWineD3DSwapChain
**
pSwapChain
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
SwapChainList
*
swapchain
;
int
i
=
iSwapChain
;
HRESULT
hr
=
D3DERR_INVALIDCALL
;
swapchain
=
This
->
swapchains
;
TRACE
(
"(%p) : swapchain %d
\n
"
,
This
,
iSwapChain
);
TRACE
(
"(%p) Finding swapchain %d
\n
"
,
This
,
iSwapChain
);
while
(
i
SwapChain
>
0
&&
swapchain
!=
NULL
)
{
while
(
i
>
0
&&
swapchain
!=
NULL
)
{
swapchain
=
swapchain
->
next
;
iSwapChain
--
;
--
i
;
}
if
(
i
SwapChain
>
0
||
swapchain
==
NULL
)
{
if
(
i
>
0
)
{
FIXME
(
"(%p) Unable to find swapchain %d
\n
"
,
This
,
iSwapChain
);
*
pSwapChain
=
NULL
;
}
else
{
}
else
if
(
swapchain
!=
NULL
)
{
/** TODO: move off to a linkesList implementation **/
*
pSwapChain
=
swapchain
->
swapchain
;
IWineD3DSwapChain_AddRef
(
*
pSwapChain
);
...
...
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