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
3036fef6
Commit
3036fef6
authored
Aug 20, 2001
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refuse to select a bitmap that is already selected in another DC.
parent
8e5e003f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
bitmap.c
graphics/x11drv/bitmap.c
+8
-1
No files found.
graphics/x11drv/bitmap.c
View file @
3036fef6
...
...
@@ -70,9 +70,16 @@ HBITMAP X11DRV_BITMAP_SelectObject( DC * dc, HBITMAP hbitmap )
X11DRV_PDEVICE
*
physDev
=
(
X11DRV_PDEVICE
*
)
dc
->
physDev
;
if
(
!
(
dc
->
flags
&
DC_MEMORY
))
return
0
;
if
(
hbitmap
==
dc
->
hBitmap
)
return
hbitmap
;
/* nothing to do */
if
(
!
(
bmp
=
GDI_GetObjPtr
(
hbitmap
,
BITMAP_MAGIC
)))
return
0
;
if
(
bmp
->
header
.
dwCount
)
{
WARN
(
"Bitmap already selected in another DC
\n
"
);
GDI_ReleaseObj
(
hbitmap
);
return
0
;
}
if
(
!
bmp
->
physBitmap
)
{
if
(
!
X11DRV_CreateBitmap
(
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