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
d8ba1268
Commit
d8ba1268
authored
May 15, 2000
by
Ove Kaaven
Committed by
Alexandre Julliard
May 15, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use unsigned int instead of unsigned short in DirectDraw
depth-conversion color map.
parent
d34205ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
convert.c
dlls/ddraw/convert.c
+4
-4
No files found.
dlls/ddraw/convert.c
View file @
d8ba1268
...
...
@@ -12,7 +12,7 @@ static void pixel_convert_16_to_8(void *src, void *dst, DWORD width, DWORD heigh
int
y
;
if
(
palette
!=
NULL
)
{
const
unsigned
short
*
pal
=
(
unsigned
shor
t
*
)
palette
->
screen_palents
;
const
unsigned
int
*
pal
=
(
unsigned
in
t
*
)
palette
->
screen_palents
;
for
(
y
=
height
;
y
--
;
)
{
#if defined(__i386__) && defined(__GNUC__)
...
...
@@ -27,7 +27,7 @@ static void pixel_convert_16_to_8(void *src, void *dst, DWORD width, DWORD heigh
"xor %%eax,%%eax
\n
"
"1:
\n
"
" lodsb
\n
"
" movw (%%edx,%%eax,
2
),%%ax
\n
"
" movw (%%edx,%%eax,
4
),%%ax
\n
"
" stosw
\n
"
" xor %%eax,%%eax
\n
"
" loop 1b
\n
"
...
...
@@ -52,7 +52,7 @@ static void palette_convert_16_to_8(
LPPALETTEENTRY
palent
,
void
*
screen_palette
,
DWORD
start
,
DWORD
count
)
{
int
i
;
unsigned
short
*
pal
=
(
unsigned
shor
t
*
)
screen_palette
;
unsigned
int
*
pal
=
(
unsigned
in
t
*
)
screen_palette
;
for
(
i
=
0
;
i
<
count
;
i
++
)
pal
[
start
+
i
]
=
(((((
unsigned
short
)
palent
[
i
].
peRed
)
&
0xF8
)
<<
8
)
|
...
...
@@ -64,7 +64,7 @@ static void palette_convert_15_to_8(
LPPALETTEENTRY
palent
,
void
*
screen_palette
,
DWORD
start
,
DWORD
count
)
{
int
i
;
unsigned
short
*
pal
=
(
unsigned
shor
t
*
)
screen_palette
;
unsigned
int
*
pal
=
(
unsigned
in
t
*
)
screen_palette
;
for
(
i
=
0
;
i
<
count
;
i
++
)
pal
[
start
+
i
]
=
(((((
unsigned
short
)
palent
[
i
].
peRed
)
&
0xF8
)
<<
7
)
|
...
...
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