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
e6f5829a
Commit
e6f5829a
authored
Mar 04, 2013
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 05, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Avoid signed-unsigned integer comparisons.
parent
97295b3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
directx.c
dlls/wined3d/directx.c
+2
-2
surface.c
dlls/wined3d/surface.c
+3
-3
No files found.
dlls/wined3d/directx.c
View file @
e6f5829a
...
@@ -2247,7 +2247,7 @@ static enum wined3d_pci_device wined3d_guess_card(const struct wined3d_gl_info *
...
@@ -2247,7 +2247,7 @@ static enum wined3d_pci_device wined3d_guess_card(const struct wined3d_gl_info *
* memory behind our backs if really needed. Note that the amount of video
* memory behind our backs if really needed. Note that the amount of video
* memory can be overruled using a registry setting. */
* memory can be overruled using a registry setting. */
int
i
;
unsigned
int
i
;
enum
wined3d_pci_device
device
;
enum
wined3d_pci_device
device
;
for
(
i
=
0
;
i
<
(
sizeof
(
card_vendor_table
)
/
sizeof
(
*
card_vendor_table
));
++
i
)
for
(
i
=
0
;
i
<
(
sizeof
(
card_vendor_table
)
/
sizeof
(
*
card_vendor_table
));
++
i
)
...
@@ -5014,7 +5014,7 @@ static void fillGLAttribFuncs(const struct wined3d_gl_info *gl_info)
...
@@ -5014,7 +5014,7 @@ static void fillGLAttribFuncs(const struct wined3d_gl_info *gl_info)
static
void
wined3d_adapter_init_fb_cfgs
(
struct
wined3d_adapter
*
adapter
,
HDC
dc
)
static
void
wined3d_adapter_init_fb_cfgs
(
struct
wined3d_adapter
*
adapter
,
HDC
dc
)
{
{
const
struct
wined3d_gl_info
*
gl_info
=
&
adapter
->
gl_info
;
const
struct
wined3d_gl_info
*
gl_info
=
&
adapter
->
gl_info
;
unsigned
int
i
;
int
i
;
if
(
gl_info
->
supported
[
WGL_ARB_PIXEL_FORMAT
])
if
(
gl_info
->
supported
[
WGL_ARB_PIXEL_FORMAT
])
{
{
...
...
dlls/wined3d/surface.c
View file @
e6f5829a
...
@@ -3763,7 +3763,7 @@ static HRESULT _Blt_ColorFill(BYTE *buf, unsigned int width, unsigned int height
...
@@ -3763,7 +3763,7 @@ static HRESULT _Blt_ColorFill(BYTE *buf, unsigned int width, unsigned int height
unsigned
int
bpp
,
UINT
pitch
,
DWORD
color
)
unsigned
int
bpp
,
UINT
pitch
,
DWORD
color
)
{
{
BYTE
*
first
;
BYTE
*
first
;
int
x
,
y
;
unsigned
int
x
,
y
;
/* Do first row */
/* Do first row */
...
@@ -4842,7 +4842,6 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
...
@@ -4842,7 +4842,6 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
struct
wined3d_device
*
device
=
dst_surface
->
resource
.
device
;
struct
wined3d_device
*
device
=
dst_surface
->
resource
.
device
;
const
struct
wined3d_gl_info
*
gl_info
;
const
struct
wined3d_gl_info
*
gl_info
;
float
xrel
,
yrel
;
float
xrel
,
yrel
;
UINT
row
;
struct
wined3d_context
*
context
;
struct
wined3d_context
*
context
;
BOOL
upsidedown
=
FALSE
;
BOOL
upsidedown
=
FALSE
;
RECT
dst_rect
=
*
dst_rect_in
;
RECT
dst_rect
=
*
dst_rect_in
;
...
@@ -4910,6 +4909,7 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
...
@@ -4910,6 +4909,7 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
}
}
else
else
{
{
LONG
row
;
UINT
yoffset
=
src_surface
->
resource
.
height
-
src_rect
->
top
+
dst_rect
.
top
-
1
;
UINT
yoffset
=
src_surface
->
resource
.
height
-
src_rect
->
top
+
dst_rect
.
top
-
1
;
/* I have to process this row by row to swap the image,
/* I have to process this row by row to swap the image,
* otherwise it would be upside down, so stretching in y direction
* otherwise it would be upside down, so stretching in y direction
...
@@ -4923,7 +4923,7 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
...
@@ -4923,7 +4923,7 @@ static void fb_copy_to_texture_direct(struct wined3d_surface *dst_surface, struc
/* Well, that stuff works, but it's very slow.
/* Well, that stuff works, but it's very slow.
* find a better way instead
* find a better way instead
*/
*/
UINT
col
;
LONG
col
;
for
(
col
=
dst_rect
.
left
;
col
<
dst_rect
.
right
;
++
col
)
for
(
col
=
dst_rect
.
left
;
col
<
dst_rect
.
right
;
++
col
)
{
{
...
...
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