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
4bc1ebb5
Commit
4bc1ebb5
authored
Jul 24, 2001
by
Ian Pilcher
Committed by
Alexandre Julliard
Jul 24, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modify init code to handle const data types.
parent
e4ca13ea
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
24 deletions
+24
-24
afm.c
dlls/wineps/afm.c
+0
-0
font.c
dlls/wineps/font.c
+9
-9
glyphlist.c
dlls/wineps/glyphlist.c
+1
-1
init.c
dlls/wineps/init.c
+1
-1
psdrv.h
dlls/wineps/psdrv.h
+13
-13
truetype.c
dlls/wineps/truetype.c
+0
-0
No files found.
dlls/wineps/afm.c
View file @
4bc1ebb5
This diff is collapsed.
Click to expand it.
dlls/wineps/font.c
View file @
4bc1ebb5
...
@@ -26,13 +26,13 @@ inline static float round(float f)
...
@@ -26,13 +26,13 @@ inline static float round(float f)
static
void
ScaleFont
(
DC
*
dc
,
LOGFONTW
*
lf
,
PSDRV_PDEVICE
*
physDev
)
static
void
ScaleFont
(
DC
*
dc
,
LOGFONTW
*
lf
,
PSDRV_PDEVICE
*
physDev
)
{
{
PSFONT
*
font
=
&
(
physDev
->
font
);
PSFONT
*
font
=
&
(
physDev
->
font
);
WINMETRICS
*
wm
=
&
(
font
->
afm
->
WinMetrics
);
const
WINMETRICS
*
wm
=
&
(
font
->
afm
->
WinMetrics
);
TEXTMETRICW
*
tm
=
&
(
font
->
tm
);
TEXTMETRICW
*
tm
=
&
(
font
->
tm
);
LONG
lfHeight_ds
;
LONG
lfHeight_ds
;
USHORT
usUnitsPerEm
,
usWinAscent
,
usWinDescent
;
USHORT
usUnitsPerEm
,
usWinAscent
,
usWinDescent
;
SHORT
sAscender
,
sDescender
,
sLineGap
,
sTypoAscender
;
SHORT
sAscender
,
sDescender
,
sLineGap
,
sTypoAscender
;
SHORT
sTypoDescender
,
sTypoLineGap
,
sAvgCharWidth
;
SHORT
sTypoDescender
,
sTypoLineGap
,
sAvgCharWidth
;
TRACE
(
"'%s' %li
\n
"
,
font
->
afm
->
FontName
,
lf
->
lfHeight
);
TRACE
(
"'%s' %li
\n
"
,
font
->
afm
->
FontName
,
lf
->
lfHeight
);
...
@@ -452,8 +452,8 @@ BOOL PSDRV_SetFont( DC *dc )
...
@@ -452,8 +452,8 @@ BOOL PSDRV_SetFont( DC *dc )
/***********************************************************************
/***********************************************************************
* PSDRV_GetFontMetric
* PSDRV_GetFontMetric
*/
*/
static
UINT
PSDRV_GetFontMetric
(
HDC
hdc
,
AFM
*
pafm
,
NEWTEXTMETRICEXW
*
pTM
,
static
UINT
PSDRV_GetFontMetric
(
HDC
hdc
,
const
AFM
*
pafm
,
ENUMLOGFONTEXW
*
pLF
,
INT16
size
)
NEWTEXTMETRICEXW
*
pTM
,
ENUMLOGFONTEXW
*
pLF
,
INT16
size
)
{
{
DC
*
dc
=
DC_GetDCPtr
(
hdc
);
DC
*
dc
=
DC_GetDCPtr
(
hdc
);
...
...
dlls/wineps/glyphlist.c
View file @
4bc1ebb5
...
@@ -157,7 +157,7 @@ static INT GlyphListSearch(LPCSTR szName, INT loIndex, INT hiIndex)
...
@@ -157,7 +157,7 @@ static INT GlyphListSearch(LPCSTR szName, INT loIndex, INT hiIndex)
* necessary, and returns a pointer to it (NULL if unable to add it)
* necessary, and returns a pointer to it (NULL if unable to add it)
*
*
*/
*/
GLYPHNAME
*
PSDRV_GlyphName
(
LPCSTR
szName
)
const
GLYPHNAME
*
PSDRV_GlyphName
(
LPCSTR
szName
)
{
{
INT
index
;
INT
index
;
...
...
dlls/wineps/init.c
View file @
4bc1ebb5
...
@@ -462,7 +462,7 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
...
@@ -462,7 +462,7 @@ PRINTERINFO *PSDRV_FindPrinterInfo(LPCSTR name)
DWORD
type
=
REG_BINARY
,
needed
,
res
,
dwPaperSize
;
DWORD
type
=
REG_BINARY
,
needed
,
res
,
dwPaperSize
;
PRINTERINFO
*
pi
=
PSDRV_PrinterList
,
**
last
=
&
PSDRV_PrinterList
;
PRINTERINFO
*
pi
=
PSDRV_PrinterList
,
**
last
=
&
PSDRV_PrinterList
;
FONTNAME
*
font
;
FONTNAME
*
font
;
AFM
*
afm
;
const
AFM
*
afm
;
HANDLE
hPrinter
;
HANDLE
hPrinter
;
const
char
*
ppd
=
NULL
;
const
char
*
ppd
=
NULL
;
char
ppdFileName
[
256
];
char
ppdFileName
[
256
];
...
...
dlls/wineps/psdrv.h
View file @
4bc1ebb5
...
@@ -19,7 +19,7 @@ typedef struct {
...
@@ -19,7 +19,7 @@ typedef struct {
typedef
struct
{
typedef
struct
{
LONG
UV
;
LONG
UV
;
GLYPHNAME
*
name
;
const
GLYPHNAME
*
name
;
}
UNICODEGLYPH
;
}
UNICODEGLYPH
;
typedef
struct
{
typedef
struct
{
...
@@ -36,9 +36,9 @@ typedef struct _tagAFMMETRICS {
...
@@ -36,9 +36,9 @@ typedef struct _tagAFMMETRICS {
int
C
;
/* character */
int
C
;
/* character */
LONG
UV
;
LONG
UV
;
float
WX
;
float
WX
;
GLYPHNAME
*
N
;
/* name */
const
GLYPHNAME
*
N
;
/* name */
AFMBBOX
B
;
AFMBBOX
B
;
AFMLIGS
*
L
;
/* Ligatures */
const
AFMLIGS
*
L
;
/* Ligatures */
}
AFMMETRICS
;
}
AFMMETRICS
;
typedef
struct
{
typedef
struct
{
...
@@ -55,10 +55,10 @@ typedef struct {
...
@@ -55,10 +55,10 @@ typedef struct {
}
WINMETRICS
;
}
WINMETRICS
;
typedef
struct
_tagAFM
{
typedef
struct
_tagAFM
{
char
*
FontName
;
LPCSTR
FontName
;
char
*
FullName
;
LPCSTR
FullName
;
char
*
FamilyName
;
LPCSTR
FamilyName
;
char
*
EncodingScheme
;
LPCSTR
EncodingScheme
;
LONG
Weight
;
/* FW_NORMAL etc. */
LONG
Weight
;
/* FW_NORMAL etc. */
float
ItalicAngle
;
float
ItalicAngle
;
BOOL
IsFixedPitch
;
BOOL
IsFixedPitch
;
...
@@ -73,7 +73,7 @@ typedef struct _tagAFM {
...
@@ -73,7 +73,7 @@ typedef struct _tagAFM {
WINMETRICS
WinMetrics
;
WINMETRICS
WinMetrics
;
float
CharWidths
[
256
];
float
CharWidths
[
256
];
int
NumofMetrics
;
int
NumofMetrics
;
AFMMETRICS
*
Metrics
;
const
AFMMETRICS
*
Metrics
;
}
AFM
;
/* CharWidths is a shortcut to the WX values of numbered glyphs */
}
AFM
;
/* CharWidths is a shortcut to the WX values of numbered glyphs */
/* Note no 'next' in AFM. Use AFMLISTENTRY as a container. This allow more than
/* Note no 'next' in AFM. Use AFMLISTENTRY as a container. This allow more than
...
@@ -82,7 +82,7 @@ typedef struct _tagAFM {
...
@@ -82,7 +82,7 @@ typedef struct _tagAFM {
fonts for each DC (dc->physDev->Fonts) */
fonts for each DC (dc->physDev->Fonts) */
typedef
struct
_tagAFMLISTENTRY
{
typedef
struct
_tagAFMLISTENTRY
{
AFM
*
afm
;
const
AFM
*
afm
;
struct
_tagAFMLISTENTRY
*
next
;
struct
_tagAFMLISTENTRY
*
next
;
}
AFMLISTENTRY
;
}
AFMLISTENTRY
;
...
@@ -218,7 +218,7 @@ typedef struct {
...
@@ -218,7 +218,7 @@ typedef struct {
}
PSCOLOR
;
}
PSCOLOR
;
typedef
struct
{
typedef
struct
{
AFM
*
afm
;
const
AFM
*
afm
;
TEXTMETRICW
tm
;
TEXTMETRICW
tm
;
INT
size
;
INT
size
;
float
scale
;
float
scale
;
...
@@ -297,8 +297,8 @@ extern void PSDRV_MergeDevmodes(PSDRV_DEVMODEA *dm1, PSDRV_DEVMODEA *dm2,
...
@@ -297,8 +297,8 @@ extern void PSDRV_MergeDevmodes(PSDRV_DEVMODEA *dm1, PSDRV_DEVMODEA *dm2,
extern
BOOL
PSDRV_GetFontMetrics
(
void
);
extern
BOOL
PSDRV_GetFontMetrics
(
void
);
extern
PPD
*
PSDRV_ParsePPD
(
char
*
fname
);
extern
PPD
*
PSDRV_ParsePPD
(
char
*
fname
);
extern
PRINTERINFO
*
PSDRV_FindPrinterInfo
(
LPCSTR
name
);
extern
PRINTERINFO
*
PSDRV_FindPrinterInfo
(
LPCSTR
name
);
extern
AFM
*
PSDRV_FindAFMinList
(
FONTFAMILY
*
head
,
char
*
name
);
extern
const
AFM
*
PSDRV_FindAFMinList
(
FONTFAMILY
*
head
,
char
*
name
);
extern
BOOL
PSDRV_AddAFMtoList
(
FONTFAMILY
**
head
,
AFM
*
afm
);
extern
BOOL
PSDRV_AddAFMtoList
(
FONTFAMILY
**
head
,
const
AFM
*
afm
);
extern
void
PSDRV_FreeAFMList
(
FONTFAMILY
*
head
);
extern
void
PSDRV_FreeAFMList
(
FONTFAMILY
*
head
);
extern
BOOL
WINAPI
PSDRV_Init
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
reserved
);
extern
BOOL
WINAPI
PSDRV_Init
(
HINSTANCE
hinst
,
DWORD
reason
,
LPVOID
reserved
);
...
@@ -425,7 +425,7 @@ extern DWORD PSDRV_DeviceCapabilities(LPSTR lpszDriver, LPCSTR lpszDevice,
...
@@ -425,7 +425,7 @@ extern DWORD PSDRV_DeviceCapabilities(LPSTR lpszDriver, LPCSTR lpszDevice,
LPDEVMODEA
lpdm
);
LPDEVMODEA
lpdm
);
VOID
PSDRV_DrawLine
(
DC
*
dc
);
VOID
PSDRV_DrawLine
(
DC
*
dc
);
INT
PSDRV_GlyphListInit
();
INT
PSDRV_GlyphListInit
();
GLYPHNAME
*
PSDRV_GlyphName
(
LPCSTR
szName
);
const
GLYPHNAME
*
PSDRV_GlyphName
(
LPCSTR
szName
);
VOID
PSDRV_IndexGlyphList
();
VOID
PSDRV_IndexGlyphList
();
BOOL
PSDRV_GetTrueTypeMetrics
();
BOOL
PSDRV_GetTrueTypeMetrics
();
const
AFMMETRICS
*
PSDRV_UVMetrics
(
LONG
UV
,
const
AFM
*
afm
);
const
AFMMETRICS
*
PSDRV_UVMetrics
(
LONG
UV
,
const
AFM
*
afm
);
...
...
dlls/wineps/truetype.c
View file @
4bc1ebb5
This diff is collapsed.
Click to expand it.
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