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
d5ee6234
Commit
d5ee6234
authored
Nov 27, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11.drv: Don't use the specified DC when mapping RGB colors for a DIB.
The DC palette only matters for DIB_PAL_COLORS.
parent
4659870d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
bitmap.c
dlls/gdi32/tests/bitmap.c
+4
-4
dib.c
dlls/winex11.drv/dib.c
+2
-2
No files found.
dlls/gdi32/tests/bitmap.c
View file @
d5ee6234
...
...
@@ -1107,10 +1107,10 @@ static void test_GetDIBits_selected_DIB(UINT bpp)
break
;
}
}
todo_wine
{
ok
(
equalContents
,
"GetDIBits with DIB selected in DC: Invalid DIB bits
\n
"
);
}
if
(
bpp
!=
1
)
ok
(
equalContents
,
"GetDIBits with %d bpp DIB selected in DC: Invalid DIB bits
\n
"
,
bpp
);
else
todo_wine
ok
(
equalContents
,
"GetDIBits with %d bpp DIB selected in DC: Invalid DIB bits
\n
"
,
bpp
);
HeapFree
(
GetProcessHeap
(),
0
,
bits2
);
DeleteDC
(
dc
);
...
...
dlls/winex11.drv/dib.c
View file @
d5ee6234
...
...
@@ -312,7 +312,7 @@ static int *X11DRV_DIB_GenColorMap( X11DRV_PDEVICE *physDev, int *colorMapping,
}
else
for
(
i
=
start
;
i
<
end
;
i
++
,
rgb
++
)
colorMapping
[
i
]
=
X11DRV_PALETTE_ToPhysical
(
physDev
,
RGB
(
rgb
->
rgbRed
,
colorMapping
[
i
]
=
X11DRV_PALETTE_ToPhysical
(
NULL
,
RGB
(
rgb
->
rgbRed
,
rgb
->
rgbGreen
,
rgb
->
rgbBlue
));
}
...
...
@@ -336,7 +336,7 @@ static int *X11DRV_DIB_GenColorMap( X11DRV_PDEVICE *physDev, int *colorMapping,
}
else
for
(
i
=
start
;
i
<
end
;
i
++
,
rgb
++
)
colorMapping
[
i
]
=
X11DRV_PALETTE_ToPhysical
(
physDev
,
RGB
(
rgb
->
rgbtRed
,
colorMapping
[
i
]
=
X11DRV_PALETTE_ToPhysical
(
NULL
,
RGB
(
rgb
->
rgbtRed
,
rgb
->
rgbtGreen
,
rgb
->
rgbtBlue
));
}
...
...
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