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
94705862
Commit
94705862
authored
Nov 14, 2002
by
Huw Davies
Committed by
Alexandre Julliard
Nov 14, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Client side render fonts for XServers without the Render extension
using X11 core requests.
parent
3f61afbb
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
43 additions
and
5 deletions
+43
-5
x11drv_main.c
dlls/x11drv/x11drv_main.c
+18
-0
xrender.c
dlls/x11drv/xrender.c
+0
-0
config
documentation/samples/config
+12
-0
bitmap.c
graphics/x11drv/bitmap.c
+3
-0
clipping.c
graphics/x11drv/clipping.c
+3
-2
xfont.c
graphics/x11drv/xfont.c
+2
-2
x11drv.h
include/x11drv.h
+5
-1
No files found.
dlls/x11drv/x11drv_main.c
View file @
94705862
...
...
@@ -60,6 +60,10 @@ Window root_window;
int
dxgrab
,
usedga
,
usexvidmode
;
int
use_take_focus
=
1
;
int
managed_mode
=
1
;
int
client_side_with_core
=
1
;
int
client_side_with_render
=
1
;
int
client_side_antialias_with_core
=
1
;
int
client_side_antialias_with_render
=
1
;
unsigned
int
X11DRV_server_startticks
;
...
...
@@ -252,6 +256,18 @@ static void setup_options(void)
if
(
!
get_config_key
(
hkey
,
appkey
,
"Synchronous"
,
buffer
,
sizeof
(
buffer
)
))
synchronous
=
IS_OPTION_TRUE
(
buffer
[
0
]
);
if
(
!
get_config_key
(
hkey
,
appkey
,
"ClientSideWithCore"
,
buffer
,
sizeof
(
buffer
)
))
client_side_with_core
=
IS_OPTION_TRUE
(
buffer
[
0
]
);
if
(
!
get_config_key
(
hkey
,
appkey
,
"ClientSideWithRender"
,
buffer
,
sizeof
(
buffer
)
))
client_side_with_render
=
IS_OPTION_TRUE
(
buffer
[
0
]
);
if
(
!
get_config_key
(
hkey
,
appkey
,
"ClientSideAntiAliasWithCore"
,
buffer
,
sizeof
(
buffer
)
))
client_side_antialias_with_core
=
IS_OPTION_TRUE
(
buffer
[
0
]
);
if
(
!
get_config_key
(
hkey
,
appkey
,
"ClientSideAntiAliasWithRender"
,
buffer
,
sizeof
(
buffer
)
))
client_side_antialias_with_render
=
IS_OPTION_TRUE
(
buffer
[
0
]
);
if
(
appkey
)
RegCloseKey
(
appkey
);
RegCloseKey
(
hkey
);
}
...
...
@@ -381,6 +397,8 @@ static void process_detach(void)
/* cleanup XVidMode */
X11DRV_XF86VM_Cleanup
();
#endif
if
(
using_client_side_fonts
)
X11DRV_XRender_Finalize
();
/* FIXME: should detach all threads */
thread_detach
();
...
...
dlls/x11drv/xrender.c
View file @
94705862
This diff is collapsed.
Click to expand it.
documentation/samples/config
View file @
94705862
...
...
@@ -137,6 +137,18 @@ WINE REGISTRY Version 2
;; "XVideoPort" = "43"
; Run in synchronous mode (useful for debugging X11 problems)
;;"Synchronous" = "Y"
;
; Use the Render extension to render client side fonts (default "Y")
;;"ClientSideWithRender" = "Y"
; Fallback on X core requests to render client side fonts (default "Y")
;;"ClientSideWithCore" = "Y"
; Set both of the previous two to "N" in order to force X11 server side fonts
;
; Anti-alias fonts if using the Render extension (default "Y")
;;"ClientSideAntiAliasWithRender" = "Y"
; Anti-alias fonts if using core requests fallback (default "Y")
;;"ClientSideAntiAliasWithCore" = "Y"
;
[fonts]
;Read the Fonts topic in the Wine User Guide before adding aliases
...
...
graphics/x11drv/bitmap.c
View file @
94705862
...
...
@@ -80,6 +80,9 @@ HBITMAP X11DRV_SelectBitmap( X11DRV_PDEVICE *physDev, HBITMAP hbitmap )
if
(
!
(
bmp
=
GDI_GetObjPtr
(
hbitmap
,
BITMAP_MAGIC
)))
return
0
;
if
(
physDev
->
xrender
)
X11DRV_XRender_UpdateDrawable
(
physDev
);
if
(
hbitmap
==
GetStockObject
(
DEFAULT_BITMAP
))
physDev
->
drawable
=
BITMAP_stock_pixmap
;
else
...
...
graphics/x11drv/clipping.c
View file @
94705862
...
...
@@ -136,12 +136,13 @@ void X11DRV_SetDrawable( HDC hdc, Drawable drawable, int mode, const POINT *org,
{
X11DRV_PDEVICE
*
physDev
=
(
X11DRV_PDEVICE
*
)
dc
->
physDev
;
if
(
physDev
->
xrender
)
X11DRV_XRender_UpdateDrawable
(
physDev
);
physDev
->
org
=
*
org
;
physDev
->
drawable
=
drawable
;
physDev
->
drawable_org
=
*
drawable_org
;
TSXSetSubwindowMode
(
gdi_display
,
physDev
->
gc
,
mode
);
if
(
physDev
->
xrender
)
X11DRV_XRender_UpdateDrawable
(
physDev
);
GDI_ReleaseObj
(
hdc
);
}
}
...
...
graphics/x11drv/xfont.c
View file @
94705862
...
...
@@ -3007,7 +3007,7 @@ void X11DRV_FONT_Init( int *log_pixels_x, int *log_pixels_y )
{
XFONT_GetPointResolution
(
log_pixels_x
,
log_pixels_y
);
if
(
X11DRV_XRender_Installed
)
if
(
using_client_side_fonts
)
text_caps
|=
TC_VA_ABLE
;
return
;
...
...
@@ -3263,7 +3263,7 @@ HFONT X11DRV_SelectFont( X11DRV_PDEVICE *physDev, HFONT hfont )
TRACE
(
"dc->gdiFont = %p
\n
"
,
dc
->
gdiFont
);
if
(
dc
->
gdiFont
&&
X11DRV_XRender_Installed
)
{
if
(
dc
->
gdiFont
&&
using_client_side_fonts
)
{
X11DRV_XRender_SelectFont
(
physDev
,
hfont
);
return
FALSE
;
}
...
...
include/x11drv.h
View file @
94705862
...
...
@@ -212,7 +212,11 @@ extern const int X11DRV_XROPfunction[];
extern
void
_XInitImageFuncPtrs
(
XImage
*
);
extern
BOOL
X11DRV_XRender_Installed
;
extern
int
client_side_with_core
;
extern
int
client_side_with_render
;
extern
int
client_side_antialias_with_core
;
extern
int
client_side_antialias_with_render
;
extern
int
using_client_side_fonts
;
extern
void
X11DRV_XRender_Init
(
void
);
extern
void
X11DRV_XRender_Finalize
(
void
);
extern
BOOL
X11DRV_XRender_SelectFont
(
X11DRV_PDEVICE
*
,
HFONT
);
...
...
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