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
74c741ad
Commit
74c741ad
authored
Sep 23, 2011
by
David Kiefer
Committed by
Alexandre Julliard
Sep 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Remove x86 inline assembly for performing palettized blits.
parent
8c3ffea6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
42 deletions
+0
-42
dib.c
dlls/winex11.drv/dib.c
+0
-42
No files found.
dlls/winex11.drv/dib.c
View file @
74c741ad
...
...
@@ -1276,26 +1276,6 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits,
/* ==== pal 8 dib -> rgb or bgr 555 or 565 bmp ==== */
dstbits
=
(
BYTE
*
)
bmpImage
->
data
+
left
*
2
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
;
for
(
h
=
lines
;
h
--
;
)
{
#if defined(__i386__) && defined(__GNUC__)
int
_cl1
,
_cl2
;
/* temp outputs for asm below */
/* Borrowed from DirectDraw */
__asm__
__volatile__
(
"xor %%eax,%%eax
\n
"
"cld
\n
"
"1:
\n
"
" lodsb
\n
"
" movw (%%edx,%%eax,4),%%ax
\n
"
" stosw
\n
"
" xor %%eax,%%eax
\n
"
" loop 1b
\n
"
:
"=S"
(
srcbyte
),
"=D"
(
_cl1
),
"=c"
(
_cl2
)
:
"S"
(
srcbyte
),
"D"
(
dstbits
),
"c"
(
width
),
"d"
(
colors
)
:
"eax"
,
"cc"
,
"memory"
);
#else
DWORD
*
dstpixel
=
(
DWORD
*
)
dstbits
;
for
(
x
=
0
;
x
<
width
/
2
;
x
++
)
{
/* Do 2 pixels at a time */
...
...
@@ -1306,7 +1286,6 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits,
/* And then the odd pixel */
*
((
WORD
*
)
dstpixel
)
=
colors
[
srcbyte
[
0
]];
}
#endif
srcbyte
=
(
srcbits
+=
linebytes
);
dstbits
-=
bmpImage
->
bytes_per_line
;
}
...
...
@@ -1321,31 +1300,10 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits,
dstbits
=
(
BYTE
*
)
bmpImage
->
data
+
left
*
4
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
;
/* ==== pal 8 dib -> rgb or bgr 0888 bmp ==== */
for
(
h
=
lines
;
h
--
;
)
{
#if defined(__i386__) && defined(__GNUC__)
int
_cl1
,
_cl2
;
/* temp outputs for asm below */
/* Borrowed from DirectDraw */
__asm__
__volatile__
(
"xor %%eax,%%eax
\n
"
"cld
\n
"
"1:
\n
"
" lodsb
\n
"
" movl (%%edx,%%eax,4),%%eax
\n
"
" stosl
\n
"
" xor %%eax,%%eax
\n
"
" loop 1b
\n
"
:
"=S"
(
srcbyte
),
"=D"
(
_cl1
),
"=c"
(
_cl2
)
:
"S"
(
srcbyte
),
"D"
(
dstbits
),
"c"
(
width
),
"d"
(
colors
)
:
"eax"
,
"cc"
,
"memory"
);
#else
DWORD
*
dstpixel
=
(
DWORD
*
)
dstbits
;
for
(
x
=
0
;
x
<
width
;
x
++
)
{
*
dstpixel
++=
colors
[
*
srcbyte
++
];
}
#endif
srcbyte
=
(
srcbits
+=
linebytes
);
dstbits
-=
bmpImage
->
bytes_per_line
;
}
...
...
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