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
11353fcb
Commit
11353fcb
authored
May 11, 2000
by
Marcus Meissner
Committed by
Alexandre Julliard
May 11, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed asm() constraints.
parent
f1822356
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dib.c
graphics/x11drv/dib.c
+4
-2
No files found.
graphics/x11drv/dib.c
View file @
11353fcb
...
...
@@ -907,19 +907,21 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits,
case
16
:
#if defined(__i386__) && defined(__GNUC__)
/* Some X servers might have 32 bit/ 16bit deep pixel */
if
(
bmpImage
->
bits_per_pixel
==
16
)
if
(
lines
&&
(
dstwidth
!=
left
)
&&
(
bmpImage
->
bits_per_pixel
==
16
)
)
{
for
(
h
=
lines
;
h
--
;
)
{
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" (bits), "=D" (dstbits)*/
:
"=S"
(
bits
),
"=D"
(
_cl1
),
"=c"
(
_cl2
)
:
"S"
(
bits
),
"D"
(
bmpImage
->
data
+
h
*
bmpImage
->
bytes_per_line
+
left
*
2
),
"c"
(
dstwidth
-
left
),
...
...
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