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
36cf25b5
Commit
36cf25b5
authored
Sep 10, 2008
by
Tobias Jakobi
Committed by
Alexandre Julliard
Sep 12, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix long int warnings.
parent
6e1194f0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
drawprim.c
dlls/wined3d/drawprim.c
+3
-3
No files found.
dlls/wined3d/drawprim.c
View file @
36cf25b5
...
...
@@ -1025,7 +1025,7 @@ void drawPrimitive(IWineD3DDevice *iface,
WINED3DLOCKED_RECT
r
;
char
buffer
[
80
];
IWineD3DSurface_LockRect
(
This
->
render_targets
[
0
],
&
r
,
NULL
,
WINED3DLOCK_READONLY
);
sprintf
(
buffer
,
"/tmp/backbuffer_%d.tga"
,
primCounter
);
sprintf
(
buffer
,
"/tmp/backbuffer_%
l
d.tga"
,
primCounter
);
TRACE
(
"Saving screenshot %s
\n
"
,
buffer
);
IWineD3DSurface_SaveSnapshot
(
This
->
render_targets
[
0
],
buffer
);
IWineD3DSurface_UnlockRect
(
This
->
render_targets
[
0
]);
...
...
@@ -1036,7 +1036,7 @@ void drawPrimitive(IWineD3DDevice *iface,
int
textureNo
;
for
(
textureNo
=
0
;
textureNo
<
MAX_COMBINED_SAMPLERS
;
++
textureNo
)
{
if
(
This
->
stateBlock
->
textures
[
textureNo
]
!=
NULL
)
{
sprintf
(
buffer
,
"/tmp/texture_%p_%d_%d.tga"
,
This
->
stateBlock
->
textures
[
textureNo
],
primCounter
,
textureNo
);
sprintf
(
buffer
,
"/tmp/texture_%p_%
l
d_%d.tga"
,
This
->
stateBlock
->
textures
[
textureNo
],
primCounter
,
textureNo
);
TRACE
(
"Saving texture %s
\n
"
,
buffer
);
if
(
IWineD3DBaseTexture_GetType
(
This
->
stateBlock
->
textures
[
textureNo
])
==
WINED3DRTYPE_TEXTURE
)
{
IWineD3DTexture_GetSurfaceLevel
((
IWineD3DTexture
*
)
This
->
stateBlock
->
textures
[
textureNo
],
0
,
&
pSur
);
...
...
@@ -1050,7 +1050,7 @@ void drawPrimitive(IWineD3DDevice *iface,
}
#endif
}
TRACE
(
"drawprim #%d
\n
"
,
primCounter
);
TRACE
(
"drawprim #%
l
d
\n
"
,
primCounter
);
++
primCounter
;
}
#endif
...
...
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