Andrew Talbot : wineps.drv: Remove unneeded casts.
Alexandre Julliard
julliard at winehq.org
Mon Feb 4 08:43:16 CST 2008
Module: wine
Branch: master
Commit: f44d2eddcbffc52e258c32e44a490b876f90cbfe
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f44d2eddcbffc52e258c32e44a490b876f90cbfe
Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date: Sat Feb 2 17:27:14 2008 +0000
wineps.drv: Remove unneeded casts.
---
dlls/wineps.drv/driver.c | 4 ++--
dlls/wineps.drv/type1afm.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/wineps.drv/driver.c b/dlls/wineps.drv/driver.c
index b4f98fb..42e537a 100644
--- a/dlls/wineps.drv/driver.c
+++ b/dlls/wineps.drv/driver.c
@@ -550,8 +550,8 @@ DWORD PSDRV_DeviceCapabilities(LPSTR lpszDriver, LPCSTR lpszDevice, LPCSTR lpszP
LONG *lp = (LONG*)lpszOutput;
if(lpszOutput != NULL) {
- lp[0] = (LONG)pi->ppd->DefaultResolution;
- lp[1] = (LONG)pi->ppd->DefaultResolution;
+ lp[0] = pi->ppd->DefaultResolution;
+ lp[1] = pi->ppd->DefaultResolution;
}
return 1;
}
diff --git a/dlls/wineps.drv/type1afm.c b/dlls/wineps.drv/type1afm.c
index dd79eee..dd7e0ce 100644
--- a/dlls/wineps.drv/type1afm.c
+++ b/dlls/wineps.drv/type1afm.c
@@ -861,7 +861,7 @@ static VOID Unicodify(AFM *afm, OLD_AFMMETRICS *metrics)
{
if (metrics[i].C >= 0x20 && metrics[i].C <= 0xff)
{
- metrics[i].UV = ((LONG)(metrics[i].C)) | 0xf000L;
+ metrics[i].UV = metrics[i].C | 0xf000L;
}
else
{
More information about the wine-cvs
mailing list