Module: wine Branch: master Commit: 86b99de84fa20bd0978d226194ca317a8636407c URL: http://source.winehq.org/git/wine.git/?a=commit;h=86b99de84fa20bd0978d226194...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Thu May 1 23:29:00 2008 +0100
wineps.drv: Remove unused code.
---
dlls/wineps.drv/text.c | 11 ----------- dlls/wineps.drv/type42.c | 5 ----- 2 files changed, 0 insertions(+), 16 deletions(-)
diff --git a/dlls/wineps.drv/text.c b/dlls/wineps.drv/text.c index 88579a1..282ce35 100644 --- a/dlls/wineps.drv/text.c +++ b/dlls/wineps.drv/text.c @@ -95,21 +95,10 @@ static BOOL PSDRV_Text(PSDRV_PDEVICE *physDev, INT x, INT y, UINT flags, LPCWSTR UINT count, BOOL bDrawBackground, const INT *lpDx) { WORD *glyphs = NULL; - double cosEsc, sinEsc; - LOGFONTW lf;
if (!count) return TRUE;
- GetObjectW(GetCurrentObject(physDev->hdc, OBJ_FONT), sizeof(lf), &lf); - if(lf.lfEscapement != 0) { - cosEsc = cos(lf.lfEscapement * M_PI / 1800); - sinEsc = sin(lf.lfEscapement * M_PI / 1800); - } else { - cosEsc = 1; - sinEsc = 0; - } - if(physDev->font.fontloc == Download) glyphs = (LPWORD)str;
diff --git a/dlls/wineps.drv/type42.c b/dlls/wineps.drv/type42.c index 6031366..172072e 100644 --- a/dlls/wineps.drv/type42.c +++ b/dlls/wineps.drv/type42.c @@ -285,8 +285,6 @@ BOOL T42_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index, DWORD start, end, i; char *buf; TYPE42 *t42; - WORD awidth; - short lsb;
const char glyph_def[] = "/%s findfont exch 1 index\n" @@ -317,9 +315,6 @@ BOOL T42_download_glyph(PSDRV_PDEVICE *physDev, DOWNLOAD *pdl, DWORD index, if(!get_glyf_pos(t42, index, &start, &end)) return FALSE; TRACE("start = %x end = %x\n", start, end);
- awidth = GET_BE_WORD(t42->tables[t42->hmtx_tab].data + index * 4); - lsb = GET_BE_WORD(t42->tables[t42->hmtx_tab].data + index * 4 + 2); - if(GET_BE_WORD(t42->tables[t42->glyf_tab].data + start) == 0xffff) { /* Composite glyph */ BYTE *sg_start = t42->tables[t42->glyf_tab].data + start + 10;