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
cbfcce1a
Commit
cbfcce1a
authored
Sep 12, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Add a SelectFont entry point in the XRender driver.
parent
225d8abe
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
29 deletions
+20
-29
x11drv.h
dlls/winex11.drv/x11drv.h
+0
-1
xfont.c
dlls/winex11.drv/xfont.c
+0
-6
xrender.c
dlls/winex11.drv/xrender.c
+20
-22
No files found.
dlls/winex11.drv/x11drv.h
View file @
cbfcce1a
...
@@ -303,7 +303,6 @@ extern int client_side_antialias_with_render DECLSPEC_HIDDEN;
...
@@ -303,7 +303,6 @@ extern int client_side_antialias_with_render DECLSPEC_HIDDEN;
extern
int
using_client_side_fonts
DECLSPEC_HIDDEN
;
extern
int
using_client_side_fonts
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
*
X11DRV_XRender_Init
(
void
)
DECLSPEC_HIDDEN
;
extern
const
struct
gdi_dc_funcs
*
X11DRV_XRender_Init
(
void
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_XRender_Finalize
(
void
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_XRender_Finalize
(
void
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_XRender_SelectFont
(
X11DRV_PDEVICE
*
,
HFONT
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_XRender_SetDeviceClipping
(
X11DRV_PDEVICE
*
physDev
,
const
RGNDATA
*
data
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_XRender_SetDeviceClipping
(
X11DRV_PDEVICE
*
physDev
,
const
RGNDATA
*
data
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_XRender_CopyBrush
(
X11DRV_PDEVICE
*
physDev
,
X_PHYSBITMAP
*
physBitmap
,
int
width
,
int
height
)
DECLSPEC_HIDDEN
;
extern
void
X11DRV_XRender_CopyBrush
(
X11DRV_PDEVICE
*
physDev
,
X_PHYSBITMAP
*
physBitmap
,
int
width
,
int
height
)
DECLSPEC_HIDDEN
;
extern
BOOL
X11DRV_XRender_ExtTextOut
(
X11DRV_PDEVICE
*
physDev
,
INT
x
,
INT
y
,
UINT
flags
,
extern
BOOL
X11DRV_XRender_ExtTextOut
(
X11DRV_PDEVICE
*
physDev
,
INT
x
,
INT
y
,
UINT
flags
,
...
...
dlls/winex11.drv/xfont.c
View file @
cbfcce1a
...
@@ -3238,12 +3238,6 @@ HFONT X11DRV_SelectFont( PHYSDEV dev, HFONT hfont, HANDLE gdiFont )
...
@@ -3238,12 +3238,6 @@ HFONT X11DRV_SelectFont( PHYSDEV dev, HFONT hfont, HANDLE gdiFont )
TRACE
(
"gdiFont = %p
\n
"
,
gdiFont
);
TRACE
(
"gdiFont = %p
\n
"
,
gdiFont
);
if
(
gdiFont
&&
using_client_side_fonts
)
{
X11DRV_XRender_SelectFont
(
physDev
,
hfont
);
physDev
->
has_gdi_font
=
TRUE
;
return
FALSE
;
}
EnterCriticalSection
(
&
crtsc_fonts_X11
);
EnterCriticalSection
(
&
crtsc_fonts_X11
);
if
(
fontList
==
NULL
)
X11DRV_FONT_InitX11Metrics
();
if
(
fontList
==
NULL
)
X11DRV_FONT_InitX11Metrics
();
...
...
dlls/winex11.drv/xrender.c
View file @
cbfcce1a
...
@@ -1091,24 +1091,30 @@ void X11DRV_XRender_Finalize(void)
...
@@ -1091,24 +1091,30 @@ void X11DRV_XRender_Finalize(void)
LeaveCriticalSection
(
&
xrender_cs
);
LeaveCriticalSection
(
&
xrender_cs
);
}
}
/**********************************************************************
/***********************************************************************
* xrenderdrv_SelectFont
* X11DRV_XRender_SelectFont
*/
*/
BOOL
X11DRV_XRender_SelectFont
(
X11DRV_PDEVICE
*
physDev
,
HFONT
hfont
)
static
HFONT
xrenderdrv_SelectFont
(
PHYSDEV
dev
,
HFONT
hfont
,
HANDLE
gdiFont
)
{
{
struct
xrender_physdev
*
physdev
=
get_xrender_dev
(
dev
);
LFANDSIZE
lfsz
;
LFANDSIZE
lfsz
;
struct
xrender_info
*
info
;
GetObjectW
(
hfont
,
sizeof
(
lfsz
.
lf
),
&
lfsz
.
lf
);
if
(
!
GetObjectW
(
hfont
,
sizeof
(
lfsz
.
lf
),
&
lfsz
.
lf
))
return
HGDI_ERROR
;
if
(
!
gdiFont
)
{
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pSelectFont
);
return
dev
->
funcs
->
pSelectFont
(
dev
,
hfont
,
gdiFont
);
}
TRACE
(
"h=%d w=%d weight=%d it=%d charset=%d name=%s
\n
"
,
TRACE
(
"h=%d w=%d weight=%d it=%d charset=%d name=%s
\n
"
,
lfsz
.
lf
.
lfHeight
,
lfsz
.
lf
.
lfWidth
,
lfsz
.
lf
.
lfWeight
,
lfsz
.
lf
.
lfHeight
,
lfsz
.
lf
.
lfWidth
,
lfsz
.
lf
.
lfWeight
,
lfsz
.
lf
.
lfItalic
,
lfsz
.
lf
.
lfCharSet
,
debugstr_w
(
lfsz
.
lf
.
lfFaceName
));
lfsz
.
lf
.
lfItalic
,
lfsz
.
lf
.
lfCharSet
,
debugstr_w
(
lfsz
.
lf
.
lfFaceName
));
lfsz
.
lf
.
lfWidth
=
abs
(
lfsz
.
lf
.
lfWidth
);
lfsz
.
lf
.
lfWidth
=
abs
(
lfsz
.
lf
.
lfWidth
);
lfsz
.
devsize
.
cx
=
X11DRV_XWStoDS
(
phys
D
ev
,
lfsz
.
lf
.
lfWidth
);
lfsz
.
devsize
.
cx
=
X11DRV_XWStoDS
(
phys
dev
->
x11d
ev
,
lfsz
.
lf
.
lfWidth
);
lfsz
.
devsize
.
cy
=
X11DRV_YWStoDS
(
phys
D
ev
,
lfsz
.
lf
.
lfHeight
);
lfsz
.
devsize
.
cy
=
X11DRV_YWStoDS
(
phys
dev
->
x11d
ev
,
lfsz
.
lf
.
lfHeight
);
GetTransform
(
physDev
->
dev
.
hdc
,
0x204
,
&
lfsz
.
xform
);
GetTransform
(
dev
->
hdc
,
0x204
,
&
lfsz
.
xform
);
TRACE
(
"font transform %f %f %f %f
\n
"
,
lfsz
.
xform
.
eM11
,
lfsz
.
xform
.
eM12
,
TRACE
(
"font transform %f %f %f %f
\n
"
,
lfsz
.
xform
.
eM11
,
lfsz
.
xform
.
eM12
,
lfsz
.
xform
.
eM21
,
lfsz
.
xform
.
eM22
);
lfsz
.
xform
.
eM21
,
lfsz
.
xform
.
eM22
);
...
@@ -1117,14 +1123,12 @@ BOOL X11DRV_XRender_SelectFont(X11DRV_PDEVICE *physDev, HFONT hfont)
...
@@ -1117,14 +1123,12 @@ BOOL X11DRV_XRender_SelectFont(X11DRV_PDEVICE *physDev, HFONT hfont)
lfsz_calc_hash
(
&
lfsz
);
lfsz_calc_hash
(
&
lfsz
);
info
=
get_xrender_info
(
physDev
);
if
(
!
info
)
return
0
;
EnterCriticalSection
(
&
xrender_cs
);
EnterCriticalSection
(
&
xrender_cs
);
if
(
info
->
cache_index
!=
-
1
)
if
(
physdev
->
info
.
cache_index
!=
-
1
)
dec_ref_cache
(
info
->
cache_index
);
dec_ref_cache
(
physdev
->
info
.
cache_index
);
info
->
cache_index
=
GetCacheEntry
(
physDev
,
&
lfsz
);
physdev
->
info
.
cache_index
=
GetCacheEntry
(
physdev
->
x11dev
,
&
lfsz
);
LeaveCriticalSection
(
&
xrender_cs
);
LeaveCriticalSection
(
&
xrender_cs
);
physdev
->
x11dev
->
has_gdi_font
=
TRUE
;
return
0
;
return
0
;
}
}
...
@@ -2608,7 +2612,7 @@ static const struct gdi_dc_funcs xrender_funcs =
...
@@ -2608,7 +2612,7 @@ static const struct gdi_dc_funcs xrender_funcs =
xrenderdrv_SelectBitmap
,
/* pSelectBitmap */
xrenderdrv_SelectBitmap
,
/* pSelectBitmap */
NULL
,
/* pSelectBrush */
NULL
,
/* pSelectBrush */
NULL
,
/* pSelectClipPath */
NULL
,
/* pSelectClipPath */
NULL
,
/* pSelectFont */
xrenderdrv_SelectFont
,
/* pSelectFont */
NULL
,
/* pSelectPalette */
NULL
,
/* pSelectPalette */
NULL
,
/* pSelectPen */
NULL
,
/* pSelectPen */
NULL
,
/* pSetArcDirection */
NULL
,
/* pSetArcDirection */
...
@@ -2662,12 +2666,6 @@ void X11DRV_XRender_Finalize(void)
...
@@ -2662,12 +2666,6 @@ void X11DRV_XRender_Finalize(void)
{
{
}
}
BOOL
X11DRV_XRender_SelectFont
(
X11DRV_PDEVICE
*
physDev
,
HFONT
hfont
)
{
assert
(
0
);
return
FALSE
;
}
void
X11DRV_XRender_SetDeviceClipping
(
X11DRV_PDEVICE
*
physDev
,
const
RGNDATA
*
data
)
void
X11DRV_XRender_SetDeviceClipping
(
X11DRV_PDEVICE
*
physDev
,
const
RGNDATA
*
data
)
{
{
assert
(
0
);
assert
(
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