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
7897de4e
Commit
7897de4e
authored
Dec 05, 2000
by
Guy L. Albertelli
Committed by
Alexandre Julliard
Dec 05, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- correct number of colormap entries looked at in GetDIBColorTable.
- correct number of colormap entries processed in SetDIBColorTable.
parent
9ae2f15d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
dib.c
graphics/x11drv/dib.c
+4
-3
No files found.
graphics/x11drv/dib.c
View file @
7897de4e
...
...
@@ -3659,7 +3659,7 @@ UINT X11DRV_DIB_SetDIBColorTable(BITMAPOBJ *bmp, DC *dc, UINT start, UINT count,
if
(
dib
&&
dib
->
colorMap
)
{
X11DRV_DIB_GenColorMap
(
dc
,
dib
->
colorMap
,
DIB_RGB_COLORS
,
dib
->
dibSection
.
dsBm
.
bmBitsPixel
,
TRUE
,
colors
,
start
,
count
-
start
);
TRUE
,
colors
,
start
,
count
+
start
);
return
count
;
}
return
0
;
...
...
@@ -3673,7 +3673,8 @@ UINT X11DRV_DIB_GetDIBColorTable(BITMAPOBJ *bmp, DC *dc, UINT start, UINT count,
X11DRV_DIBSECTION
*
dib
=
(
X11DRV_DIBSECTION
*
)
bmp
->
dib
;
if
(
dib
&&
dib
->
colorMap
)
{
int
i
,
end
=
count
-
start
;
int
i
,
end
=
count
+
start
;
if
(
end
>
dib
->
nColorMap
)
end
=
dib
->
nColorMap
;
for
(
i
=
start
;
i
<
end
;
i
++
,
colors
++
)
{
COLORREF
col
=
X11DRV_PALETTE_ToLogical
(
dib
->
colorMap
[
i
]
);
colors
->
rgbBlue
=
GetBValue
(
col
);
...
...
@@ -3681,7 +3682,7 @@ UINT X11DRV_DIB_GetDIBColorTable(BITMAPOBJ *bmp, DC *dc, UINT start, UINT count,
colors
->
rgbRed
=
GetRValue
(
col
);
colors
->
rgbReserved
=
0
;
}
return
coun
t
;
return
end
-
star
t
;
}
return
0
;
}
...
...
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