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
fdba8b85
Commit
fdba8b85
authored
Nov 20, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 21, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Sign-compare warnings fix.
parent
cf9f9af6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
15 deletions
+15
-15
context.c
dlls/wined3d/context.c
+5
-5
device.c
dlls/wined3d/device.c
+10
-10
No files found.
dlls/wined3d/context.c
View file @
fdba8b85
...
...
@@ -191,7 +191,7 @@ static void context_check_fbo_status(IWineD3DDevice *iface)
TRACE
(
"FBO complete
\n
"
);
}
else
{
IWineD3DSurfaceImpl
*
attachment
;
int
i
;
unsigned
int
i
;
FIXME
(
"FBO status %s (%#x)
\n
"
,
debug_fbostatus
(
status
),
status
);
/* Dump the FBO attachments */
...
...
@@ -446,7 +446,8 @@ static WineD3DContext *AddContextToArray(IWineD3DDeviceImpl *This, HWND win_hand
/* This function takes care of WineD3D pixel format selection. */
static
int
WineD3D_ChoosePixelFormat
(
IWineD3DDeviceImpl
*
This
,
HDC
hdc
,
WINED3DFORMAT
ColorFormat
,
WINED3DFORMAT
DepthStencilFormat
,
BOOL
auxBuffers
,
int
numSamples
,
BOOL
pbuffer
,
BOOL
findCompatible
)
{
int
iPixelFormat
=
0
,
matchtry
;
int
iPixelFormat
=
0
;
unsigned
int
matchtry
;
short
redBits
,
greenBits
,
blueBits
,
alphaBits
,
colorBits
;
short
depthBits
=
0
,
stencilBits
=
0
;
...
...
@@ -1214,7 +1215,7 @@ static inline void SetupForBlit(IWineD3DDeviceImpl *This, WineD3DContext *contex
*
*****************************************************************************/
static
WineD3DContext
*
findThreadContextForSwapChain
(
IWineD3DSwapChain
*
swapchain
,
DWORD
tid
)
{
int
i
;
unsigned
int
i
;
for
(
i
=
0
;
i
<
((
IWineD3DSwapChainImpl
*
)
swapchain
)
->
num_contexts
;
i
++
)
{
if
(((
IWineD3DSwapChainImpl
*
)
swapchain
)
->
context
[
i
]
->
tid
==
tid
)
{
...
...
@@ -1475,8 +1476,7 @@ static void apply_draw_buffer(IWineD3DDeviceImpl *This, IWineD3DSurface *target,
*****************************************************************************/
void
ActivateContext
(
IWineD3DDeviceImpl
*
This
,
IWineD3DSurface
*
target
,
ContextUsage
usage
)
{
DWORD
tid
=
GetCurrentThreadId
();
int
i
;
DWORD
dirtyState
,
idx
;
DWORD
i
,
dirtyState
,
idx
;
BYTE
shift
;
WineD3DContext
*
context
;
const
struct
StateEntry
*
StateTable
=
This
->
StateTable
;
...
...
dlls/wined3d/device.c
View file @
fdba8b85
...
...
@@ -1152,8 +1152,8 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateCubeTexture(IWineD3DDevice *iface
if
(
hr
!=
WINED3D_OK
)
{
/* clean up */
int
k
;
int
l
;
unsigned
int
k
;
unsigned
int
l
;
for
(
l
=
0
;
l
<
j
;
l
++
)
{
IWineD3DSurface_Release
(
object
->
surfaces
[
l
][
i
]);
}
...
...
@@ -1573,7 +1573,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_CreateSwapChain(IWineD3DDevice* iface,
* Create the back, front and stencil buffers
*******************/
if
(
object
->
presentParms
.
BackBufferCount
>
0
)
{
int
i
;
UINT
i
;
object
->
backBuffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IWineD3DSurface
*
)
*
object
->
presentParms
.
BackBufferCount
);
if
(
!
object
->
backBuffer
)
{
...
...
@@ -1667,7 +1667,7 @@ error:
}
if
(
object
->
backBuffer
)
{
int
i
;
UINT
i
;
for
(
i
=
0
;
i
<
object
->
presentParms
.
BackBufferCount
;
i
++
)
{
if
(
object
->
backBuffer
[
i
])
{
IWineD3DSurface_GetParent
(
object
->
backBuffer
[
i
],
&
bufferParent
);
...
...
@@ -3623,7 +3623,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetVertexShaderConstantF(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
;
UINT
i
;
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
...
...
@@ -3663,7 +3663,7 @@ CONST float *srcData,
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
;
UINT
i
;
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
...
...
@@ -4052,7 +4052,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantF(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
;
UINT
i
;
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
...
...
@@ -4092,7 +4092,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_SetPixelShaderConstantF_DirtyConst(
UINT
count
)
{
IWineD3DDeviceImpl
*
This
=
(
IWineD3DDeviceImpl
*
)
iface
;
int
i
;
UINT
i
;
TRACE
(
"(iface %p, srcData %p, start %d, count %d)
\n
"
,
iface
,
srcData
,
start
,
count
);
...
...
@@ -4148,7 +4148,7 @@ process_vertices_strided(IWineD3DDeviceImpl *This, DWORD dwDestIndex, DWORD dwCo
WINED3DVIEWPORT
vp
;
WINED3DMATRIX
mat
,
proj_mat
,
view_mat
,
world_mat
;
BOOL
doClip
;
int
numTextures
;
DWORD
numTextures
;
if
(
lpStrideData
->
u
.
s
.
normal
.
lpData
)
{
WARN
(
" lighting state not saved yet... Some strange stuff may happen !
\n
"
);
...
...
@@ -7187,7 +7187,7 @@ static HRESULT WINAPI IWineD3DDeviceImpl_Reset(IWineD3DDevice* iface, WINED3DPRE
pPresentationParameters
->
BackBufferHeight
!=
swapchain
->
presentParms
.
BackBufferHeight
))
{
WINED3DVIEWPORT
vp
;
int
i
;
UINT
i
;
vp
.
X
=
0
;
vp
.
Y
=
0
;
...
...
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