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
8cca615f
Commit
8cca615f
authored
Dec 05, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Don't store a font pointer in the generic part of the DC.
parent
baedf81b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
6 deletions
+2
-6
dc.c
dlls/gdi32/dc.c
+0
-1
freetype.c
dlls/gdi32/freetype.c
+2
-2
gdi_private.h
dlls/gdi32/gdi_private.h
+0
-3
No files found.
dlls/gdi32/dc.c
View file @
8cca615f
...
...
@@ -409,7 +409,6 @@ INT nulldrv_SaveDC( PHYSDEV dev )
newdc
->
vportExtY
=
dc
->
vportExtY
;
newdc
->
virtual_res
=
dc
->
virtual_res
;
newdc
->
virtual_size
=
dc
->
virtual_size
;
newdc
->
gdiFont
=
dc
->
gdiFont
;
/* Get/SetDCState() don't change hVisRgn field ("Undoc. Windows" p.559). */
...
...
dlls/gdi32/freetype.c
View file @
8cca615f
...
...
@@ -309,6 +309,8 @@ typedef struct tagHFONTLIST {
HFONT
hfont
;
}
HFONTLIST
;
typedef
struct
tagGdiFont
GdiFont
;
typedef
struct
{
struct
list
entry
;
Face
*
face
;
...
...
@@ -4552,7 +4554,6 @@ static HFONT freetype_SelectFont( PHYSDEV dev, HFONT hfont, UINT *aa_flags )
if
(
!
hfont
)
/* notification that the font has been changed by another driver */
{
dc
->
gdiFont
=
NULL
;
physdev
->
font
=
NULL
;
release_dc_ptr
(
dc
);
return
0
;
...
...
@@ -5010,7 +5011,6 @@ done:
}
}
TRACE
(
"%p %s %d aa %x
\n
"
,
hfont
,
debugstr_w
(
lf
.
lfFaceName
),
lf
.
lfHeight
,
*
aa_flags
);
dc
->
gdiFont
=
ret
;
physdev
->
font
=
ret
;
}
LeaveCriticalSection
(
&
freetype_cs
);
...
...
dlls/gdi32/gdi_private.h
View file @
8cca615f
...
...
@@ -57,8 +57,6 @@ struct gdi_obj_funcs
BOOL
(
*
pDeleteObject
)(
HGDIOBJ
handle
);
};
typedef
struct
tagGdiFont
GdiFont
;
typedef
struct
tagDC
{
HDC
hSelf
;
/* Handle to this DC */
...
...
@@ -103,7 +101,6 @@ typedef struct tagDC
HBITMAP
hBitmap
;
HPALETTE
hPalette
;
GdiFont
*
gdiFont
;
struct
gdi_path
*
path
;
UINT
font_code_page
;
...
...
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