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
8eef221d
Commit
8eef221d
authored
Oct 20, 2009
by
Stefan Dösinger
Committed by
Alexandre Julliard
Nov 03, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d3d: Handle the pointsize_min default difference in d3d8.
parent
83bca757
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
device.c
dlls/d3d8/device.c
+3
-0
directx.c
dlls/d3d8/directx.c
+7
-1
stateblock.c
dlls/wined3d/stateblock.c
+1
-1
No files found.
dlls/d3d8/device.c
View file @
8eef221d
...
@@ -587,6 +587,9 @@ static HRESULT WINAPI IDirect3DDevice8Impl_Reset(LPDIRECT3DDEVICE8 iface, D3DPRE
...
@@ -587,6 +587,9 @@ static HRESULT WINAPI IDirect3DDevice8Impl_Reset(LPDIRECT3DDEVICE8 iface, D3DPRE
wined3d_mutex_lock
();
wined3d_mutex_lock
();
hr
=
IWineD3DDevice_Reset
(
This
->
WineD3DDevice
,
&
localParameters
);
hr
=
IWineD3DDevice_Reset
(
This
->
WineD3DDevice
,
&
localParameters
);
if
(
SUCCEEDED
(
hr
))
{
hr
=
IWineD3DDevice_SetRenderState
(
This
->
WineD3DDevice
,
WINED3DRS_POINTSIZE_MIN
,
0
);
}
wined3d_mutex_unlock
();
wined3d_mutex_unlock
();
pPresentationParameters
->
BackBufferWidth
=
localParameters
.
BackBufferWidth
;
pPresentationParameters
->
BackBufferWidth
=
localParameters
.
BackBufferWidth
;
...
...
dlls/d3d8/directx.c
View file @
8eef221d
...
@@ -412,11 +412,17 @@ static HRESULT WINAPI IDirect3D8Impl_CreateDevice(LPDIRECT3D8 iface, UINT Adapte
...
@@ -412,11 +412,17 @@ static HRESULT WINAPI IDirect3D8Impl_CreateDevice(LPDIRECT3D8 iface, UINT Adapte
}
}
hr
=
IWineD3DDevice_Init3D
(
object
->
WineD3DDevice
,
&
localParameters
);
hr
=
IWineD3DDevice_Init3D
(
object
->
WineD3DDevice
,
&
localParameters
);
wined3d_mutex_unlock
();
if
(
hr
!=
D3D_OK
)
{
if
(
hr
!=
D3D_OK
)
{
wined3d_mutex_unlock
();
FIXME
(
"(%p) D3D Initialization failed for WineD3DDevice %p
\n
"
,
This
,
object
->
WineD3DDevice
);
FIXME
(
"(%p) D3D Initialization failed for WineD3DDevice %p
\n
"
,
This
,
object
->
WineD3DDevice
);
goto
err
;
goto
err
;
}
}
hr
=
IWineD3DDevice_SetRenderState
(
object
->
WineD3DDevice
,
WINED3DRS_POINTSIZE_MIN
,
0
);
wined3d_mutex_unlock
();
if
(
FAILED
(
hr
))
{
FIXME
(
"(%p) SetRenderState failed
\n
"
,
This
);
goto
err
;
}
pPresentationParameters
->
BackBufferWidth
=
localParameters
.
BackBufferWidth
;
pPresentationParameters
->
BackBufferWidth
=
localParameters
.
BackBufferWidth
;
pPresentationParameters
->
BackBufferHeight
=
localParameters
.
BackBufferHeight
;
pPresentationParameters
->
BackBufferHeight
=
localParameters
.
BackBufferHeight
;
...
...
dlls/wined3d/stateblock.c
View file @
8eef221d
...
@@ -1161,7 +1161,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
...
@@ -1161,7 +1161,7 @@ static HRESULT WINAPI IWineD3DStateBlockImpl_InitStartupStateBlock(IWineD3DStat
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SOFTWAREVERTEXPROCESSING
,
FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_SOFTWAREVERTEXPROCESSING
,
FALSE
);
tmpfloat
.
f
=
1
.
0
f
;
tmpfloat
.
f
=
1
.
0
f
;
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_POINTSIZE
,
tmpfloat
.
d
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_POINTSIZE
,
tmpfloat
.
d
);
tmpfloat
.
f
=
((
IWineD3DImpl
*
)
This
->
wineD3DDevice
->
wineD3D
)
->
dxVersion
<
9
?
0
.
0
f
:
1
.
0
f
;
tmpfloat
.
f
=
1
.
0
f
;
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_POINTSIZE_MIN
,
tmpfloat
.
d
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_POINTSIZE_MIN
,
tmpfloat
.
d
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_POINTSPRITEENABLE
,
FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_POINTSPRITEENABLE
,
FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_POINTSCALEENABLE
,
FALSE
);
IWineD3DDevice_SetRenderState
(
device
,
WINED3DRS_POINTSCALEENABLE
,
FALSE
);
...
...
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