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
1e37d61e
Commit
1e37d61e
authored
May 30, 2018
by
Józef Kucia
Committed by
Alexandre Julliard
May 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Get rid of unnecessary assignments.
Signed-off-by:
Józef Kucia
<
jkucia@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a08438af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
xvidmode.c
dlls/winex11.drv/xvidmode.c
+4
-4
No files found.
dlls/winex11.drv/xvidmode.c
View file @
1e37d61e
...
...
@@ -368,7 +368,7 @@ static void interpolate_gamma_ramp(WORD *dst_r, WORD *dst_g, WORD *dst_b, unsign
static
BOOL
xf86vm_get_gamma_ramp
(
struct
x11drv_gamma_ramp
*
ramp
)
{
WORD
*
red
,
*
green
,
*
blue
;
BOOL
ret
=
FALSE
;
BOOL
ret
;
if
(
xf86vm_gammaramp_size
==
GAMMA_RAMP_SIZE
)
{
...
...
@@ -378,7 +378,7 @@ static BOOL xf86vm_get_gamma_ramp(struct x11drv_gamma_ramp *ramp)
}
else
{
if
(
!
(
red
=
heap_calloc
(
3
*
xf86vm_gammaramp_size
,
sizeof
(
*
red
))))
if
(
!
(
red
=
heap_calloc
(
xf86vm_gammaramp_size
,
3
*
sizeof
(
*
red
))))
return
FALSE
;
green
=
red
+
xf86vm_gammaramp_size
;
blue
=
green
+
xf86vm_gammaramp_size
;
...
...
@@ -397,7 +397,7 @@ static BOOL xf86vm_get_gamma_ramp(struct x11drv_gamma_ramp *ramp)
static
BOOL
xf86vm_set_gamma_ramp
(
struct
x11drv_gamma_ramp
*
ramp
)
{
WORD
*
red
,
*
green
,
*
blue
;
BOOL
ret
=
FALSE
;
BOOL
ret
;
if
(
xf86vm_gammaramp_size
==
GAMMA_RAMP_SIZE
)
{
...
...
@@ -407,7 +407,7 @@ static BOOL xf86vm_set_gamma_ramp(struct x11drv_gamma_ramp *ramp)
}
else
{
if
(
!
(
red
=
heap_calloc
(
3
*
xf86vm_gammaramp_size
,
sizeof
(
*
red
))))
if
(
!
(
red
=
heap_calloc
(
xf86vm_gammaramp_size
,
3
*
sizeof
(
*
red
))))
return
FALSE
;
green
=
red
+
xf86vm_gammaramp_size
;
blue
=
green
+
xf86vm_gammaramp_size
;
...
...
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