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
da628001
Commit
da628001
authored
May 06, 2010
by
Gerald Pfeifer
Committed by
Alexandre Julliard
May 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix the handling of the blue channel inIWineGDISurfaceImpl_SaveSnapshot. (take 2).
parent
56fdbc22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
surface_gdi.c
dlls/wined3d/surface_gdi.c
+3
-4
No files found.
dlls/wined3d/surface_gdi.c
View file @
da628001
...
@@ -341,14 +341,13 @@ const char* filename)
...
@@ -341,14 +341,13 @@ const char* filename)
fwrite
(
output
,
3
*
This
->
pow2Width
,
1
,
f
);
fwrite
(
output
,
3
*
This
->
pow2Width
,
1
,
f
);
}
}
}
else
{
}
else
{
int
red_shift
,
green_shift
,
blue_shift
,
pix_width
,
alpha_shift
;
int
red_shift
,
green_shift
,
blue_shift
,
pix_width
;
pix_width
=
format_desc
->
byte_count
;
pix_width
=
format_desc
->
byte_count
;
red_shift
=
get_shift
(
format_desc
->
red_mask
);
red_shift
=
get_shift
(
format_desc
->
red_mask
);
green_shift
=
get_shift
(
format_desc
->
green_mask
);
green_shift
=
get_shift
(
format_desc
->
green_mask
);
blue_shift
=
get_shift
(
format_desc
->
blue_mask
);
blue_shift
=
get_shift
(
format_desc
->
blue_mask
);
alpha_shift
=
get_shift
(
format_desc
->
alpha_mask
);
for
(
y
=
0
;
y
<
This
->
pow2Height
;
y
++
)
{
for
(
y
=
0
;
y
<
This
->
pow2Height
;
y
++
)
{
const
unsigned
char
*
src
=
This
->
resource
.
allocatedMemory
+
(
y
*
1
*
IWineD3DSurface_GetPitch
(
iface
));
const
unsigned
char
*
src
=
This
->
resource
.
allocatedMemory
+
(
y
*
1
*
IWineD3DSurface_GetPitch
(
iface
));
...
@@ -367,8 +366,8 @@ const char* filename)
...
@@ -367,8 +366,8 @@ const char* filename)
output
[
3
*
x
+
0
]
=
red_shift
>
0
?
comp
>>
red_shift
:
comp
<<
-
red_shift
;
output
[
3
*
x
+
0
]
=
red_shift
>
0
?
comp
>>
red_shift
:
comp
<<
-
red_shift
;
comp
=
color
&
format_desc
->
green_mask
;
comp
=
color
&
format_desc
->
green_mask
;
output
[
3
*
x
+
1
]
=
green_shift
>
0
?
comp
>>
green_shift
:
comp
<<
-
green_shift
;
output
[
3
*
x
+
1
]
=
green_shift
>
0
?
comp
>>
green_shift
:
comp
<<
-
green_shift
;
comp
=
color
&
format_desc
->
alpha
_mask
;
comp
=
color
&
format_desc
->
blue
_mask
;
output
[
3
*
x
+
2
]
=
alpha_shift
>
0
?
comp
>>
alpha_shift
:
comp
<<
-
alpha
_shift
;
output
[
3
*
x
+
2
]
=
blue_shift
>
0
?
comp
>>
blue_shift
:
comp
<<
-
blue
_shift
;
}
}
fwrite
(
output
,
3
*
This
->
pow2Width
,
1
,
f
);
fwrite
(
output
,
3
*
This
->
pow2Width
,
1
,
f
);
}
}
...
...
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