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
9c112996
Commit
9c112996
authored
Jan 09, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Stop forwarding object selection calls to x11drv.
parent
dc1aeeb2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
14 deletions
+5
-14
dc.c
dlls/gdi32/dibdrv/dc.c
+1
-4
objects.c
dlls/gdi32/dibdrv/objects.c
+4
-10
No files found.
dlls/gdi32/dibdrv/dc.c
View file @
9c112996
...
...
@@ -348,7 +348,6 @@ static BOOL dibdrv_DeleteBitmap( HBITMAP bitmap )
*/
static
HBITMAP
dibdrv_SelectBitmap
(
PHYSDEV
dev
,
HBITMAP
bitmap
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pSelectBitmap
);
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
BITMAPOBJ
*
bmp
=
GDI_GetObjPtr
(
bitmap
,
OBJ_BITMAP
);
dib_info
dib
;
...
...
@@ -365,7 +364,7 @@ static HBITMAP dibdrv_SelectBitmap( PHYSDEV dev, HBITMAP bitmap )
pdev
->
dib
=
dib
;
GDI_ReleaseObj
(
bitmap
);
return
next
->
funcs
->
pSelectBitmap
(
next
,
bitmap
)
;
return
bitmap
;
}
/***********************************************************************
...
...
@@ -373,12 +372,10 @@ static HBITMAP dibdrv_SelectBitmap( PHYSDEV dev, HBITMAP bitmap )
*/
static
void
dibdrv_SetDeviceClipping
(
PHYSDEV
dev
,
HRGN
rgn
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pSetDeviceClipping
);
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
TRACE
(
"(%p, %p)
\n
"
,
dev
,
rgn
);
pdev
->
clip
=
rgn
;
return
next
->
funcs
->
pSetDeviceClipping
(
next
,
rgn
);
}
/***********************************************************************
...
...
dlls/gdi32/dibdrv/objects.c
View file @
9c112996
...
...
@@ -1703,13 +1703,12 @@ static inline int get_pen_device_width( dibdrv_physdev *pdev, int width )
*/
COLORREF
dibdrv_SetDCPenColor
(
PHYSDEV
dev
,
COLORREF
color
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pSetDCPenColor
);
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
if
(
GetCurrentObject
(
dev
->
hdc
,
OBJ_PEN
)
==
GetStockObject
(
DC_PEN
))
pdev
->
pen_brush
.
colorref
=
color
;
return
next
->
funcs
->
pSetDCPenColor
(
next
,
color
)
;
return
color
;
}
/**********************************************************************
...
...
@@ -2023,7 +2022,6 @@ static void select_brush( dib_brush *brush, const LOGBRUSH *logbrush, const stru
*/
HBRUSH
dibdrv_SelectBrush
(
PHYSDEV
dev
,
HBRUSH
hbrush
,
const
struct
brush_pattern
*
pattern
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pSelectBrush
);
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
LOGBRUSH
logbrush
;
...
...
@@ -2035,8 +2033,7 @@ HBRUSH dibdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush, const struct brush_patter
logbrush
.
lbColor
=
GetDCBrushColor
(
dev
->
hdc
);
select_brush
(
&
pdev
->
brush
,
&
logbrush
,
pattern
);
return
next
->
funcs
->
pSelectBrush
(
next
,
hbrush
,
pattern
);
return
hbrush
;
}
/***********************************************************************
...
...
@@ -2044,7 +2041,6 @@ HBRUSH dibdrv_SelectBrush( PHYSDEV dev, HBRUSH hbrush, const struct brush_patter
*/
HPEN
dibdrv_SelectPen
(
PHYSDEV
dev
,
HPEN
hpen
,
const
struct
brush_pattern
*
pattern
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pSelectPen
);
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
LOGPEN
logpen
;
LOGBRUSH
logbrush
;
...
...
@@ -2139,8 +2135,7 @@ HPEN dibdrv_SelectPen( PHYSDEV dev, HPEN hpen, const struct brush_pattern *patte
pdev
->
pen_uses_region
=
(
logpen
.
lopnStyle
&
PS_GEOMETRIC
||
pdev
->
pen_width
>
1
);
pdev
->
pen_is_ext
=
(
elp
!=
NULL
);
HeapFree
(
GetProcessHeap
(),
0
,
elp
);
return
next
->
funcs
->
pSelectPen
(
next
,
hpen
,
pattern
);
return
hpen
;
}
/***********************************************************************
...
...
@@ -2148,13 +2143,12 @@ HPEN dibdrv_SelectPen( PHYSDEV dev, HPEN hpen, const struct brush_pattern *patte
*/
COLORREF
dibdrv_SetDCBrushColor
(
PHYSDEV
dev
,
COLORREF
color
)
{
PHYSDEV
next
=
GET_NEXT_PHYSDEV
(
dev
,
pSetDCBrushColor
);
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
if
(
GetCurrentObject
(
dev
->
hdc
,
OBJ_BRUSH
)
==
GetStockObject
(
DC_BRUSH
))
pdev
->
brush
.
colorref
=
color
;
return
next
->
funcs
->
pSetDCBrushColor
(
next
,
color
)
;
return
color
;
}
BOOL
brush_rect
(
dibdrv_physdev
*
pdev
,
dib_brush
*
brush
,
const
RECT
*
rect
,
HRGN
clip
,
INT
rop
)
...
...
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