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
9cdb0e1c
Commit
9cdb0e1c
authored
Oct 31, 2012
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdi32: Disable anti-aliasing when necessary in the various drivers.
parent
ccc034c2
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
30 additions
and
10 deletions
+30
-10
dc.c
dlls/gdi32/dibdrv/dc.c
+1
-1
dibdrv.h
dlls/gdi32/dibdrv/dibdrv.h
+1
-0
graphics.c
dlls/gdi32/dibdrv/graphics.c
+13
-0
objects.c
dlls/gdi32/enhmfdrv/objects.c
+1
-0
font.c
dlls/gdi32/font.c
+0
-8
objects.c
dlls/gdi32/mfdrv/objects.c
+1
-0
font.c
dlls/wineps.drv/font.c
+2
-0
init.c
dlls/winex11.drv/init.c
+11
-1
No files found.
dlls/gdi32/dibdrv/dc.c
View file @
9cdb0e1c
...
...
@@ -484,7 +484,7 @@ const struct gdi_dc_funcs dib_driver =
dibdrv_SelectBitmap
,
/* pSelectBitmap */
dibdrv_SelectBrush
,
/* pSelectBrush */
NULL
,
/* pSelectClipPath */
NULL
,
/* pSelectFont */
dibdrv_SelectFont
,
/* pSelectFont */
NULL
,
/* pSelectPalette */
dibdrv_SelectPen
,
/* pSelectPen */
NULL
,
/* pSetArcDirection */
...
...
dlls/gdi32/dibdrv/dibdrv.h
View file @
9cdb0e1c
...
...
@@ -141,6 +141,7 @@ extern BOOL dibdrv_Rectangle( PHYSDEV dev, INT left, INT top, INT right, INT
extern
BOOL
dibdrv_RoundRect
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
,
INT
ellipse_width
,
INT
ellipse_height
)
DECLSPEC_HIDDEN
;
extern
HBRUSH
dibdrv_SelectBrush
(
PHYSDEV
dev
,
HBRUSH
hbrush
,
const
struct
brush_pattern
*
pattern
)
DECLSPEC_HIDDEN
;
extern
HFONT
dibdrv_SelectFont
(
PHYSDEV
dev
,
HFONT
font
,
UINT
*
aa_flags
)
DECLSPEC_HIDDEN
;
extern
HPEN
dibdrv_SelectPen
(
PHYSDEV
dev
,
HPEN
hpen
,
const
struct
brush_pattern
*
pattern
)
DECLSPEC_HIDDEN
;
extern
COLORREF
dibdrv_SetDCBrushColor
(
PHYSDEV
dev
,
COLORREF
color
)
DECLSPEC_HIDDEN
;
extern
COLORREF
dibdrv_SetDCPenColor
(
PHYSDEV
dev
,
COLORREF
color
)
DECLSPEC_HIDDEN
;
...
...
dlls/gdi32/dibdrv/graphics.c
View file @
9cdb0e1c
...
...
@@ -712,6 +712,19 @@ done:
}
/***********************************************************************
* dibdrv_SelectFont
*/
HFONT
dibdrv_SelectFont
(
PHYSDEV
dev
,
HFONT
font
,
UINT
*
aa_flags
)
{
dibdrv_physdev
*
pdev
=
get_dibdrv_pdev
(
dev
);
if
(
pdev
->
dib
.
bit_count
<=
8
)
*
aa_flags
=
GGO_BITMAP
;
/* no anti-aliasing on <= 8bpp */
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pSelectFont
);
return
dev
->
funcs
->
pSelectFont
(
dev
,
font
,
aa_flags
);
}
/***********************************************************************
* dibdrv_Arc
*/
BOOL
dibdrv_Arc
(
PHYSDEV
dev
,
INT
left
,
INT
top
,
INT
right
,
INT
bottom
,
...
...
dlls/gdi32/enhmfdrv/objects.c
View file @
9cdb0e1c
...
...
@@ -314,6 +314,7 @@ HFONT EMFDRV_SelectFont( PHYSDEV dev, HFONT hFont, UINT *aa_flags )
if
(
!
EMFDRV_WriteRecord
(
dev
,
&
emr
.
emr
))
return
0
;
done:
*
aa_flags
=
GGO_BITMAP
;
/* no point in anti-aliasing on metafiles */
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pSelectFont
);
dev
->
funcs
->
pSelectFont
(
dev
,
hFont
,
aa_flags
);
return
hFont
;
...
...
dlls/gdi32/font.c
View file @
9cdb0e1c
...
...
@@ -397,14 +397,6 @@ UINT get_font_aa_flags( HDC hdc, const LOGFONTW *lf )
static
int
subpixel_enabled
=
-
1
;
enum
smoothing
smoothing
;
if
(
GetObjectType
(
hdc
)
==
OBJ_MEMDC
)
{
BITMAP
bm
;
GetObjectW
(
GetCurrentObject
(
hdc
,
OBJ_BITMAP
),
sizeof
(
bm
),
&
bm
);
if
(
bm
.
bmBitsPixel
<=
8
)
return
GGO_BITMAP
;
}
else
if
(
GetDeviceCaps
(
hdc
,
BITSPIXEL
)
<=
8
)
return
GGO_BITMAP
;
if
(
hinter
==
-
1
||
subpixel_enabled
==
-
1
)
{
RASTERIZER_STATUS
status
;
...
...
dlls/gdi32/mfdrv/objects.c
View file @
9cdb0e1c
...
...
@@ -290,6 +290,7 @@ HFONT MFDRV_SelectFont( PHYSDEV dev, HFONT hfont, UINT *aa_flags )
LOGFONTW
font
;
INT16
index
;
*
aa_flags
=
GGO_BITMAP
;
/* no point in anti-aliasing on metafiles */
index
=
MFDRV_FindObject
(
dev
,
hfont
);
if
(
index
<
0
)
{
...
...
dlls/wineps.drv/font.c
View file @
9cdb0e1c
...
...
@@ -47,6 +47,8 @@ HFONT PSDRV_SelectFont( PHYSDEV dev, HFONT hfont, UINT *aa_flags )
if
(
!
GetObjectW
(
hfont
,
sizeof
(
lf
),
&
lf
))
return
0
;
*
aa_flags
=
GGO_BITMAP
;
/* no anti-aliasing on printer devices */
TRACE
(
"FaceName = %s Height = %d Italic = %d Weight = %d
\n
"
,
debugstr_w
(
lf
.
lfFaceName
),
lf
.
lfHeight
,
lf
.
lfItalic
,
lf
.
lfWeight
);
...
...
dlls/winex11.drv/init.c
View file @
9cdb0e1c
...
...
@@ -295,6 +295,16 @@ static INT X11DRV_GetDeviceCaps( PHYSDEV dev, INT cap )
}
/***********************************************************************
* SelectFont
*/
static
HFONT
X11DRV_SelectFont
(
PHYSDEV
dev
,
HFONT
hfont
,
UINT
*
aa_flags
)
{
if
(
default_visual
.
depth
<=
8
)
*
aa_flags
=
GGO_BITMAP
;
/* no anti-aliasing on <= 8bpp */
dev
=
GET_NEXT_PHYSDEV
(
dev
,
pSelectFont
);
return
dev
->
funcs
->
pSelectFont
(
dev
,
hfont
,
aa_flags
);
}
/**********************************************************************
* ExtEscape (X11DRV.@)
*/
...
...
@@ -532,7 +542,7 @@ static const struct gdi_dc_funcs x11drv_funcs =
NULL
,
/* pSelectBitmap */
X11DRV_SelectBrush
,
/* pSelectBrush */
NULL
,
/* pSelectClipPath */
NULL
,
/* pSelectFont */
X11DRV_SelectFont
,
/* pSelectFont */
NULL
,
/* pSelectPalette */
X11DRV_SelectPen
,
/* pSelectPen */
NULL
,
/* pSetArcDirection */
...
...
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