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
c73a1fd6
Commit
c73a1fd6
authored
Sep 19, 1999
by
Karl Lessard
Committed by
Alexandre Julliard
Sep 19, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more minor GDI fixes.
parent
27492598
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
81 deletions
+55
-81
dib.c
graphics/x11drv/dib.c
+47
-70
dib.c
objects/dib.c
+8
-11
No files found.
graphics/x11drv/dib.c
View file @
c73a1fd6
This diff is collapsed.
Click to expand it.
objects/dib.c
View file @
c73a1fd6
...
...
@@ -592,8 +592,8 @@ INT WINAPI GetDIBits(
for
(
y
=
0
;
y
<
lines
;
y
++
)
{
for
(
x
=
0
;
x
<
srcwidth
;
x
++
)
{
val
=
*
srcbits
++
;
*
dstbits
++
=
(
WORD
)(((
val
>>
19
)
&
bmask
)
|
((
val
>>
6
)
&
gmask
)
|
((
val
<<
7
)
&
rmask
));
*
dstbits
++
=
(
WORD
)(((
val
>>
3
)
&
bmask
)
|
((
val
>>
6
)
&
gmask
)
|
((
val
>>
9
)
&
rmask
));
}
dstbits
=
(
LPWORD
)(
dbits
+=
dstwidthb
);
srcbits
=
(
LPDWORD
)(
sbits
+=
srcwidthb
);
...
...
@@ -624,9 +624,9 @@ INT WINAPI GetDIBits(
for
(
y
=
0
;
y
<
lines
;
y
++
)
{
for
(
x
=
0
;
x
<
srcwidth
;
x
++
)
{
val
=
*
srcbits
++
;
*
dstbits
++
=
(
BYTE
)(((
val
>>
7
)
&
0xf8
)
|
((
val
>>
12
)
&
0x07
));
*
dstbits
++
=
(
BYTE
)(((
val
>>
2
)
&
0xf8
)
|
((
val
>>
7
)
&
0x07
));
*
dstbits
++
=
(
BYTE
)(((
val
<<
3
)
&
0xf8
)
|
((
val
>>
2
)
&
0x07
));
*
dstbits
++
=
(
BYTE
)(((
val
>>
2
)
&
0xf8
)
|
((
val
>>
7
)
&
0x07
));
*
dstbits
++
=
(
BYTE
)(((
val
>>
7
)
&
0xf8
)
|
((
val
>>
12
)
&
0x07
));
}
dstbits
=
(
LPBYTE
)(
dbits
+=
dstwidthb
);
srcbits
=
(
LPWORD
)(
sbits
+=
srcwidthb
);
...
...
@@ -668,7 +668,6 @@ INT WINAPI GetDIBits(
case
32
:
/* 32 bpp dstDIB */
{
LPDWORD
dstbits
=
(
LPDWORD
)
dbits
;
DWORD
rmask
=
0xff
,
gmask
=
0xff00
,
bmask
=
0xff0000
;
/* FIXME: BI_BITFIELDS not supported yet */
...
...
@@ -682,9 +681,9 @@ INT WINAPI GetDIBits(
for
(
y
=
0
;
y
<
lines
;
y
++
)
{
for
(
x
=
0
;
x
<
srcwidth
;
x
++
)
{
val
=
(
DWORD
)
*
srcbits
++
;
*
dstbits
++
=
((
val
>>
7
)
&
0xf8
)
|
((
val
>>
1
2
)
&
0x07
)
|
*
dstbits
++
=
((
val
<<
3
)
&
0xf8
)
|
((
val
>>
2
)
&
0x07
)
|
((
val
<<
6
)
&
0xf800
)
|
((
val
<<
1
)
&
0x0700
)
|
((
val
<<
19
)
&
0xf800
)
|
((
val
<<
1
4
)
&
0x070000
);
((
val
<<
9
)
&
0xf80000
)
|
((
val
<<
4
)
&
0x070000
);
}
dstbits
=
(
LPDWORD
)(
dbits
+=
dstwidthb
);
srcbits
=
(
LPWORD
)(
sbits
+=
srcwidthb
);
...
...
@@ -697,10 +696,8 @@ INT WINAPI GetDIBits(
LPBYTE
srcbits
=
sbits
;
for
(
y
=
0
;
y
<
lines
;
y
++
)
{
for
(
x
=
0
;
x
<
srcwidth
;
x
++
)
*
dstbits
++
=
((
DWORD
)
*
srcbits
++
&
rmask
)
|
(((
DWORD
)
*
srcbits
++
<<
8
)
&
gmask
)
|
(((
DWORD
)
*
srcbits
++
<<
7
)
&
bmask
);
for
(
x
=
0
;
x
<
srcwidth
;
x
++
,
srcbits
+=
3
)
*
dstbits
++
=
((
DWORD
)
*
srcbits
)
&
0x00ffffff
;
dstbits
=
(
LPDWORD
)(
dbits
+=
dstwidthb
);
srcbits
=
(
sbits
+=
srcwidthb
);
}
...
...
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