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
1d7a05cb
Commit
1d7a05cb
authored
May 12, 2011
by
Stefan Dösinger
Committed by
Alexandre Julliard
May 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Fix data types in RxGx snorm-unorm conversion.
parent
1b860b11
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
utils.c
dlls/wined3d/utils.c
+4
-4
No files found.
dlls/wined3d/utils.c
View file @
1d7a05cb
...
...
@@ -346,10 +346,10 @@ static void convert_r8g8_snorm(const BYTE *src, BYTE *dst, UINT pitch, UINT widt
Dest
=
dst
+
y
*
outpitch
;
for
(
x
=
0
;
x
<
width
;
x
++
)
{
LONG
color
=
(
*
Source
++
);
const
short
color
=
(
*
Source
++
);
/* B */
Dest
[
0
]
=
0xff
;
/* G */
Dest
[
1
]
=
(
color
>>
8
)
+
128
;
/* V */
/* R */
Dest
[
2
]
=
(
color
)
+
128
;
/* U */
/* R */
Dest
[
2
]
=
(
color
&
0xff
)
+
128
;
/* U */
Dest
+=
3
;
}
}
...
...
@@ -440,10 +440,10 @@ static void convert_r16g16_snorm(const BYTE *src, BYTE *dst, UINT pitch, UINT wi
Dest
=
(
unsigned
short
*
)
(
dst
+
y
*
outpitch
);
for
(
x
=
0
;
x
<
width
;
x
++
)
{
DWORD
color
=
(
*
Source
++
);
const
DWORD
color
=
(
*
Source
++
);
/* B */
Dest
[
0
]
=
0xffff
;
/* G */
Dest
[
1
]
=
(
color
>>
16
)
+
32768
;
/* V */
/* R */
Dest
[
2
]
=
(
color
)
+
32768
;
/* U */
/* R */
Dest
[
2
]
=
(
color
&
0xffff
)
+
32768
;
/* U */
Dest
+=
3
;
}
}
...
...
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