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
33e0d161
Commit
33e0d161
authored
Dec 01, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Dec 02, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Sign-compare warnings fix.
parent
348c115a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
8 deletions
+7
-8
surface.c
dlls/wined3d/surface.c
+3
-4
surface_gdi.c
dlls/wined3d/surface_gdi.c
+1
-1
swapchain.c
dlls/wined3d/swapchain.c
+2
-2
swapchain_gdi.c
dlls/wined3d/swapchain_gdi.c
+1
-1
No files found.
dlls/wined3d/surface.c
View file @
33e0d161
...
...
@@ -211,7 +211,7 @@ static void surface_download_data(IWineD3DSurfaceImpl *This) {
if
(
This
->
Flags
&
SFLAG_NONPOW2
)
{
const
BYTE
*
src_data
;
BYTE
*
dst_data
;
int
y
;
UINT
y
;
/*
* Some games (e.g. warhammer 40k) don't work properly with the odd pitches, preventing
* the surface pitch from being used to box non-power2 textures. Instead we have to use a hack to
...
...
@@ -2132,7 +2132,7 @@ static void d3dfmt_p8_init_palette(IWineD3DSurfaceImpl *This, BYTE table[256][4]
IWineD3DDeviceImpl
*
device
=
This
->
resource
.
wineD3DDevice
;
BOOL
index_in_alpha
=
FALSE
;
int
dxVersion
=
(
(
IWineD3DImpl
*
)
device
->
wineD3D
)
->
dxVersion
;
int
i
;
unsigned
int
i
;
/* Old games like StarCraft, C&C, Red Alert and others use P8 render targets.
* Reading back the RGB output each lockrect (each frame as they lock the whole screen)
...
...
@@ -2435,12 +2435,11 @@ static void WINAPI IWineD3DSurfaceImpl_BindTexture(IWineD3DSurface *iface) {
static
HRESULT
WINAPI
IWineD3DSurfaceImpl_SaveSnapshot
(
IWineD3DSurface
*
iface
,
const
char
*
filename
)
{
FILE
*
f
=
NULL
;
UINT
i
,
y
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
char
*
allocatedMemory
;
const
char
*
textureRow
;
IWineD3DSwapChain
*
swapChain
=
NULL
;
int
width
,
height
;
int
width
,
height
,
i
,
y
;
GLuint
tmpTexture
=
0
;
DWORD
color
;
/*FIXME:
...
...
dlls/wined3d/surface_gdi.c
View file @
33e0d161
...
...
@@ -288,7 +288,7 @@ const char* filename)
UINT
y
=
0
,
x
=
0
;
IWineD3DSurfaceImpl
*
This
=
(
IWineD3DSurfaceImpl
*
)
iface
;
static
char
*
output
=
NULL
;
static
int
size
=
0
;
static
UINT
size
=
0
;
const
StaticPixelFormatDesc
*
formatEntry
=
getFormatDescEntry
(
This
->
resource
.
format
,
NULL
,
NULL
);
if
(
This
->
pow2Width
>
size
)
{
...
...
dlls/wined3d/swapchain.c
View file @
33e0d161
...
...
@@ -39,7 +39,7 @@ WINE_DECLARE_DEBUG_CHANNEL(fps);
static
void
WINAPI
IWineD3DSwapChainImpl_Destroy
(
IWineD3DSwapChain
*
iface
,
D3DCB_DESTROYSURFACEFN
D3DCB_DestroyRenderTarget
)
{
IWineD3DSwapChainImpl
*
This
=
(
IWineD3DSwapChainImpl
*
)
iface
;
WINED3DDISPLAYMODE
mode
;
int
i
;
unsigned
int
i
;
TRACE
(
"Destroying swapchain %p
\n
"
,
iface
);
...
...
@@ -54,7 +54,7 @@ static void WINAPI IWineD3DSwapChainImpl_Destroy(IWineD3DSwapChain *iface, D3DCB
}
if
(
This
->
backBuffer
)
{
int
i
;
UINT
i
;
for
(
i
=
0
;
i
<
This
->
presentParms
.
BackBufferCount
;
i
++
)
{
IWineD3DSurface_SetContainer
(
This
->
backBuffer
[
i
],
0
);
if
(
D3DCB_DestroyRenderTarget
(
This
->
backBuffer
[
i
])
>
0
)
{
...
...
dlls/wined3d/swapchain_gdi.c
View file @
33e0d161
...
...
@@ -44,7 +44,7 @@ static void WINAPI IWineGDISwapChainImpl_Destroy(IWineD3DSwapChain *iface, D3DCB
}
if
(
This
->
backBuffer
)
{
int
i
;
UINT
i
;
for
(
i
=
0
;
i
<
This
->
presentParms
.
BackBufferCount
;
i
++
)
{
IWineD3DSurface_SetContainer
(
This
->
backBuffer
[
i
],
0
);
if
(
D3DCB_DestroyRenderback
(
This
->
backBuffer
[
i
])
>
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