Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
94fa372b
Commit
94fa372b
authored
Aug 14, 2002
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid dodgy asm optimization if the server's byte order is not
LSBFirst.
parent
238b4da3
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 @
94fa372b
...
...
@@ -2481,7 +2481,8 @@ 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
(
lines
&&
dstwidth
&&
(
bmpImage
->
bits_per_pixel
==
16
))
if
(
lines
&&
dstwidth
&&
(
bmpImage
->
bits_per_pixel
==
16
)
&&
(
ImageByteOrder
(
gdi_display
)
==
LSBFirst
)
)
{
dstbits
=
bmpImage
->
data
+
left
*
2
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
;
/* FIXME: Does this really handle all these cases correctly? */
...
...
@@ -2515,7 +2516,8 @@ static void X11DRV_DIB_SetImageBits_8( int lines, const BYTE *srcbits,
case
24
:
case
32
:
#if defined(__i386__) && defined(__GNUC__)
if
(
lines
&&
dstwidth
&&
(
bmpImage
->
bits_per_pixel
==
32
))
if
(
lines
&&
dstwidth
&&
(
bmpImage
->
bits_per_pixel
==
32
)
&&
(
ImageByteOrder
(
gdi_display
)
==
LSBFirst
)
)
{
dstbits
=
bmpImage
->
data
+
left
*
4
+
(
lines
-
1
)
*
bmpImage
->
bytes_per_line
;
/* FIXME: Does this really handle both cases correctly? */
...
...
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