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
71199eab
Commit
71199eab
authored
Dec 08, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't make a copy of the DIB color table when selecting it into a DC.
parent
910fb482
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
dc.c
dlls/gdi32/dibdrv/dc.c
+2
-5
No files found.
dlls/gdi32/dibdrv/dc.c
View file @
71199eab
...
...
@@ -422,7 +422,7 @@ static HBITMAP dibdrv_SelectBitmap( PHYSDEV dev, HBITMAP bitmap )
free_dib_info
(
&
pdev
->
dib
);
pdev
->
defer
=
0
;
if
(
!
init_dib_info_from_bitmapobj
(
&
pdev
->
dib
,
bmp
,
private_color_table
))
if
(
!
init_dib_info_from_bitmapobj
(
&
pdev
->
dib
,
bmp
,
0
))
pdev
->
defer
|=
DEFER_FORMAT
;
GDI_ReleaseObj
(
bitmap
);
...
...
@@ -495,11 +495,8 @@ static UINT dibdrv_SetDIBColorTable( PHYSDEV dev, UINT pos, UINT count, const RG
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
TRACE
(
"(%p, %d, %d, %p)
\n
"
,
dev
,
pos
,
count
,
colors
);
if
(
pdev
->
dib
.
color_table
&&
pos
<
pdev
->
dib
.
color_table_size
)
if
(
pdev
->
dib
.
color_table
)
{
if
(
pos
+
count
>
pdev
->
dib
.
color_table_size
)
count
=
pdev
->
dib
.
color_table_size
-
pos
;
memcpy
(
pdev
->
dib
.
color_table
+
pos
,
colors
,
count
*
sizeof
(
RGBQUAD
)
);
pdev
->
bkgnd_color
=
get_pixel_color
(
pdev
,
GetBkColor
(
dev
->
hdc
),
FALSE
);
update_fg_colors
(
pdev
);
...
...
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