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
70241904
Commit
70241904
authored
Sep 03, 2009
by
Roderick Colenbrander
Committed by
Alexandre Julliard
Sep 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Always adjust the color_shifts pointer when SelectBitmap is called.
parent
1e6a8013
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
bitmap.c
dlls/winex11.drv/bitmap.c
+6
-4
No files found.
dlls/winex11.drv/bitmap.c
View file @
70241904
...
...
@@ -110,10 +110,6 @@ HBITMAP CDECL X11DRV_SelectBitmap( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
if
(
physDev
->
depth
!=
physBitmap
->
pixmap_depth
)
{
physDev
->
depth
=
physBitmap
->
pixmap_depth
;
if
(
physDev
->
depth
==
1
)
physDev
->
color_shifts
=
NULL
;
else
physDev
->
color_shifts
=
&
physBitmap
->
pixmap_color_shifts
;
wine_tsx11_lock
();
XFreeGC
(
gdi_display
,
physDev
->
gc
);
physDev
->
gc
=
XCreateGC
(
gdi_display
,
physDev
->
drawable
,
0
,
NULL
);
...
...
@@ -122,6 +118,12 @@ HBITMAP CDECL X11DRV_SelectBitmap( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
XFlush
(
gdi_display
);
wine_tsx11_unlock
();
}
if
(
physDev
->
depth
==
1
)
physDev
->
color_shifts
=
NULL
;
else
physDev
->
color_shifts
=
&
physBitmap
->
pixmap_color_shifts
;
return
hbitmap
;
}
...
...
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