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
ebd24807
Commit
ebd24807
authored
Mar 04, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pass the gdiFont object to the SelectFont driver entry point so that
we don't need to look into the DC structure for it.
parent
9b90e95d
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
20 additions
and
20 deletions
+20
-20
enhmetafiledrv.h
dlls/gdi/enhmfdrv/enhmetafiledrv.h
+1
-1
objects.c
dlls/gdi/enhmfdrv/objects.c
+1
-1
gdi_private.h
dlls/gdi/gdi_private.h
+1
-1
metafiledrv.h
dlls/gdi/mfdrv/metafiledrv.h
+1
-1
objects.c
dlls/gdi/mfdrv/objects.c
+1
-1
objects.c
dlls/ttydrv/objects.c
+1
-1
ttydrv.spec
dlls/ttydrv/ttydrv.spec
+1
-1
font.c
dlls/wineps/font.c
+2
-3
wineps.spec
dlls/wineps/wineps.spec
+1
-1
text.c
dlls/x11drv/text.c
+1
-2
x11drv.h
dlls/x11drv/x11drv.h
+1
-0
x11drv.spec
dlls/x11drv/x11drv.spec
+1
-1
xfont.c
dlls/x11drv/xfont.c
+6
-5
font.c
objects/font.c
+1
-1
No files found.
dlls/gdi/enhmfdrv/enhmetafiledrv.h
View file @
ebd24807
...
...
@@ -120,7 +120,7 @@ extern INT EMFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom,
extern
HBITMAP
EMFDRV_SelectBitmap
(
PHYSDEV
dev
,
HBITMAP
handle
);
extern
HBRUSH
EMFDRV_SelectBrush
(
PHYSDEV
dev
,
HBRUSH
handle
);
extern
BOOL
EMFDRV_SelectClipPath
(
PHYSDEV
dev
,
INT
iMode
);
extern
HFONT
EMFDRV_SelectFont
(
PHYSDEV
dev
,
HFONT
handle
);
extern
HFONT
EMFDRV_SelectFont
(
PHYSDEV
dev
,
HFONT
handle
,
HANDLE
gdiFont
);
extern
HPEN
EMFDRV_SelectPen
(
PHYSDEV
dev
,
HPEN
handle
);
extern
INT
EMFDRV_SetArcDirection
(
PHYSDEV
dev
,
INT
arcDirection
);
extern
COLORREF
EMFDRV_SetBkColor
(
PHYSDEV
dev
,
COLORREF
color
);
...
...
dlls/gdi/enhmfdrv/objects.c
View file @
ebd24807
...
...
@@ -257,7 +257,7 @@ static BOOL EMFDRV_CreateFontIndirect(PHYSDEV dev, HFONT hFont )
/***********************************************************************
* EMFDRV_SelectFont
*/
HFONT
EMFDRV_SelectFont
(
PHYSDEV
dev
,
HFONT
hFont
)
HFONT
EMFDRV_SelectFont
(
PHYSDEV
dev
,
HFONT
hFont
,
HANDLE
gdiFont
)
{
EMFDRV_PDEVICE
*
physDev
=
(
EMFDRV_PDEVICE
*
)
dev
;
EMRSELECTOBJECT
emr
;
...
...
dlls/gdi/gdi_private.h
View file @
ebd24807
...
...
@@ -126,7 +126,7 @@ typedef struct tagDC_FUNCS
HBITMAP
(
*
pSelectBitmap
)(
PHYSDEV
,
HBITMAP
);
HBRUSH
(
*
pSelectBrush
)(
PHYSDEV
,
HBRUSH
);
BOOL
(
*
pSelectClipPath
)(
PHYSDEV
,
INT
);
HFONT
(
*
pSelectFont
)(
PHYSDEV
,
HFONT
);
HFONT
(
*
pSelectFont
)(
PHYSDEV
,
HFONT
,
HANDLE
);
HPALETTE
(
*
pSelectPalette
)(
PHYSDEV
,
HPALETTE
,
BOOL
);
HPEN
(
*
pSelectPen
)(
PHYSDEV
,
HPEN
);
INT
(
*
pSetArcDirection
)(
PHYSDEV
,
INT
);
...
...
dlls/gdi/mfdrv/metafiledrv.h
View file @
ebd24807
...
...
@@ -123,7 +123,7 @@ extern INT MFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum,
extern
HBITMAP
MFDRV_SelectBitmap
(
PHYSDEV
dev
,
HBITMAP
handle
);
extern
HBRUSH
MFDRV_SelectBrush
(
PHYSDEV
dev
,
HBRUSH
handle
);
extern
BOOL
MFDRV_SelectClipPath
(
PHYSDEV
dev
,
INT
iMode
);
extern
HFONT
MFDRV_SelectFont
(
PHYSDEV
dev
,
HFONT
handle
);
extern
HFONT
MFDRV_SelectFont
(
PHYSDEV
dev
,
HFONT
handle
,
HANDLE
gdiFont
);
extern
HPEN
MFDRV_SelectPen
(
PHYSDEV
dev
,
HPEN
handle
);
extern
HPALETTE
MFDRV_SelectPalette
(
PHYSDEV
dev
,
HPALETTE
hPalette
,
BOOL
bForceBackground
);
extern
UINT
MFDRV_RealizePalette
(
PHYSDEV
dev
,
HPALETTE
hPalette
,
BOOL
primary
);
...
...
dlls/gdi/mfdrv/objects.c
View file @
ebd24807
...
...
@@ -271,7 +271,7 @@ static UINT16 MFDRV_CreateFontIndirect(PHYSDEV dev, HFONT hFont, LOGFONT16 *logf
/***********************************************************************
* MFDRV_SelectFont
*/
HFONT
MFDRV_SelectFont
(
PHYSDEV
dev
,
HFONT
hfont
)
HFONT
MFDRV_SelectFont
(
PHYSDEV
dev
,
HFONT
hfont
,
HANDLE
gdiFont
)
{
METAFILEDRV_PDEVICE
*
physDev
=
(
METAFILEDRV_PDEVICE
*
)
dev
;
LOGFONT16
lf16
;
...
...
dlls/ttydrv/objects.c
View file @
ebd24807
...
...
@@ -28,7 +28,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(ttydrv);
/***********************************************************************
* SelectFont (TTYDRV.@)
*/
HFONT
TTYDRV_SelectFont
(
TTYDRV_PDEVICE
*
physDev
,
HFONT
hfont
)
HFONT
TTYDRV_SelectFont
(
TTYDRV_PDEVICE
*
physDev
,
HFONT
hfont
,
HANDLE
gdiFont
)
{
TRACE
(
"(%p, %p)
\n
"
,
physDev
->
hdc
,
hfont
);
...
...
dlls/ttydrv/ttydrv.spec
View file @
ebd24807
...
...
@@ -26,7 +26,7 @@
@ cdecl Polyline(ptr ptr long) TTYDRV_DC_Polyline
@ cdecl Rectangle(ptr long long long long) TTYDRV_DC_Rectangle
@ cdecl RoundRect(ptr long long long long long long) TTYDRV_DC_RoundRect
@ cdecl SelectFont(ptr long) TTYDRV_SelectFont
@ cdecl SelectFont(ptr long
long
) TTYDRV_SelectFont
@ cdecl SetBitmapBits(long ptr long) TTYDRV_SetBitmapBits
@ cdecl SetDCOrg(ptr long long) TTYDRV_SetDCOrg
@ cdecl SetDIBitsToDevice(ptr long long long long long long long long ptr ptr long) TTYDRV_DC_SetDIBitsToDevice
...
...
dlls/wineps/font.c
View file @
ebd24807
...
...
@@ -27,7 +27,6 @@
#include "wingdi.h"
#include "winspool.h"
#include "gdi.h"
#include "psdrv.h"
#include "wine/debug.h"
...
...
@@ -36,7 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(psdrv);
/***********************************************************************
* SelectFont (WINEPS.@)
*/
HFONT
PSDRV_SelectFont
(
PSDRV_PDEVICE
*
physDev
,
HFONT
hfont
)
HFONT
PSDRV_SelectFont
(
PSDRV_PDEVICE
*
physDev
,
HFONT
hfont
,
HANDLE
gdiFont
)
{
LOGFONTW
lf
;
BOOL
subst
=
FALSE
;
...
...
@@ -111,7 +110,7 @@ HFONT PSDRV_SelectFont( PSDRV_PDEVICE *physDev, HFONT hfont )
physDev
->
font
.
escapement
=
lf
.
lfEscapement
;
physDev
->
font
.
set
=
FALSE
;
if
(
physDev
->
dc
->
gdiFont
&&
!
subst
)
{
if
(
gdiFont
&&
!
subst
)
{
if
(
PSDRV_SelectDownloadFont
(
physDev
))
return
0
;
/* use gdi font */
}
...
...
dlls/wineps/wineps.spec
View file @
ebd24807
...
...
@@ -29,7 +29,7 @@
@ cdecl RoundRect(ptr long long long long long long) PSDRV_RoundRect
@ cdecl SelectBitmap(ptr long) PSDRV_SelectBitmap
@ cdecl SelectBrush(ptr long) PSDRV_SelectBrush
@ cdecl SelectFont(ptr long) PSDRV_SelectFont
@ cdecl SelectFont(ptr long
long
) PSDRV_SelectFont
@ cdecl SelectPen(ptr long) PSDRV_SelectPen
@ cdecl SetBkColor(ptr long) PSDRV_SetBkColor
@ cdecl SetDeviceClipping(ptr long long) PSDRV_SetDeviceClipping
...
...
dlls/x11drv/text.c
View file @
ebd24807
...
...
@@ -28,7 +28,6 @@
#include "winbase.h"
#include "winnls.h"
#include "wownt32.h"
#include "gdi.h"
#include "x11font.h"
#include "wine/debug.h"
...
...
@@ -61,7 +60,7 @@ X11DRV_ExtTextOut( X11DRV_PDEVICE *physDev, INT x, INT y, UINT flags,
UINT
align
=
GetTextAlign
(
physDev
->
hdc
);
INT
charExtra
=
GetTextCharacterExtra
(
physDev
->
hdc
);
if
(
physDev
->
dc
->
gdiF
ont
)
if
(
physDev
->
has_gdi_f
ont
)
return
X11DRV_XRender_ExtTextOut
(
physDev
,
x
,
y
,
flags
,
lprect
,
wstr
,
count
,
lpDx
,
breakExtra
);
if
(
!
X11DRV_SetupGCForText
(
physDev
))
return
TRUE
;
...
...
dlls/x11drv/x11drv.h
View file @
ebd24807
...
...
@@ -95,6 +95,7 @@ typedef struct
X_PHYSFONT
font
;
X_PHYSPEN
pen
;
X_PHYSBRUSH
brush
;
BOOL
has_gdi_font
;
/* is current font a GDI font? */
int
backgroundPixel
;
int
textPixel
;
int
depth
;
/* bit depth of the DC */
...
...
dlls/x11drv/x11drv.spec
View file @
ebd24807
...
...
@@ -42,7 +42,7 @@
@ cdecl RoundRect(ptr long long long long long long) X11DRV_RoundRect
@ cdecl SelectBitmap(ptr long) X11DRV_SelectBitmap
@ cdecl SelectBrush(ptr long) X11DRV_SelectBrush
@ cdecl SelectFont(ptr long) X11DRV_SelectFont
@ cdecl SelectFont(ptr long
long
) X11DRV_SelectFont
@ cdecl SelectPen(ptr long) X11DRV_SelectPen
@ cdecl SetBitmapBits(long ptr long) X11DRV_SetBitmapBits
@ cdecl SetBkColor(ptr long) X11DRV_SetBkColor
...
...
dlls/x11drv/xfont.c
View file @
ebd24807
...
...
@@ -42,7 +42,6 @@
#include "winnls.h"
#include "winreg.h"
#include "x11font.h"
#include "gdi.h"
#include "wine/library.h"
#include "wine/unicode.h"
#include "wine/debug.h"
...
...
@@ -3255,7 +3254,7 @@ LPIFONTINFO16 XFONT_GetFontInfo( X_PHYSFONT pFont )
/***********************************************************************
* SelectFont (X11DRV.@)
*/
HFONT
X11DRV_SelectFont
(
X11DRV_PDEVICE
*
physDev
,
HFONT
hfont
)
HFONT
X11DRV_SelectFont
(
X11DRV_PDEVICE
*
physDev
,
HFONT
hfont
,
HANDLE
gdiFont
)
{
LOGFONTW
logfont
;
LOGFONT16
lf
;
...
...
@@ -3264,10 +3263,11 @@ HFONT X11DRV_SelectFont( X11DRV_PDEVICE *physDev, HFONT hfont )
if
(
!
GetObjectW
(
hfont
,
sizeof
(
logfont
),
&
logfont
))
return
HGDI_ERROR
;
TRACE
(
"
dc->gdiFont = %p
\n
"
,
physDev
->
dc
->
gdiFont
);
TRACE
(
"
gdiFont = %p
\n
"
,
gdiFont
);
if
(
physDev
->
dc
->
gdiFont
&&
using_client_side_fonts
)
{
if
(
gdiFont
&&
using_client_side_fonts
)
{
X11DRV_XRender_SelectFont
(
physDev
,
hfont
);
physDev
->
has_gdi_font
=
TRUE
;
return
FALSE
;
}
...
...
@@ -3338,6 +3338,7 @@ HFONT X11DRV_SelectFont( X11DRV_PDEVICE *physDev, HFONT hfont )
LeaveCriticalSection
(
&
crtsc_fonts_X11
);
physDev
->
has_gdi_font
=
FALSE
;
return
(
HFONT
)
1
;
/* Use a device font */
}
...
...
@@ -3355,7 +3356,7 @@ BOOL X11DRV_EnumDeviceFonts( X11DRV_PDEVICE *physDev, LPLOGFONTW plf,
BOOL
b
,
bRet
=
0
;
/* don't enumerate x11 fonts if we're using client side fonts */
if
(
physDev
->
dc
->
gdiF
ont
)
return
FALSE
;
if
(
physDev
->
has_gdi_f
ont
)
return
FALSE
;
if
(
plf
->
lfFaceName
[
0
]
)
{
...
...
objects/font.c
View file @
ebd24807
...
...
@@ -492,7 +492,7 @@ static HGDIOBJ FONT_SelectObject( HGDIOBJ handle, void *obj, HDC hdc )
dc
->
gdiFont
=
WineEngCreateFontInstance
(
dc
,
handle
);
}
if
(
dc
->
funcs
->
pSelectFont
)
ret
=
dc
->
funcs
->
pSelectFont
(
dc
->
physDev
,
handle
);
if
(
dc
->
funcs
->
pSelectFont
)
ret
=
dc
->
funcs
->
pSelectFont
(
dc
->
physDev
,
handle
,
dc
->
gdiFont
);
if
(
ret
&&
dc
->
gdiFont
)
dc
->
gdiFont
=
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