diff options
author | Tor Andersson <tor@ghostscript.com> | 2005-05-18 09:41:20 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2005-05-18 09:41:20 +0200 |
commit | 4c68e8b9d7565eecdda712ddf1b64d30dfe2722a (patch) | |
tree | 3b8e927ad6354560a7ebd862b4f70a67240f6703 /apps/mozilla | |
parent | 667a353692f00dfc7f05126c9809de0b487260a0 (diff) | |
download | mupdf-4c68e8b9d7565eecdda712ddf1b64d30dfe2722a.tar.xz |
constify static font data so it ends up in text segment
Diffstat (limited to 'apps/mozilla')
-rw-r--r-- | apps/mozilla/moz_main.c | 15 | ||||
-rw-r--r-- | apps/mozilla/moz_winres.rc | 2 |
2 files changed, 8 insertions, 9 deletions
diff --git a/apps/mozilla/moz_main.c b/apps/mozilla/moz_main.c index afffbe86..f09fddff 100644 --- a/apps/mozilla/moz_main.c +++ b/apps/mozilla/moz_main.c @@ -97,11 +97,6 @@ void pdfmoz_open(pdfmoz_t *moz, char *filename) { if (!strncmp(error->msg, "ioerror", 7)) pdfmoz_error(moz, error); - pdfmoz_warn(moz, - "There was a problem with file \"%s\".\n" - "It may be corrupted, or generated by broken software.\n\n" - "%s\n\nTrying to continue anyway...", - filename, error->msg); error = pdf_repairxref(moz->xref, filename); if (error) pdfmoz_error(moz, error); @@ -474,8 +469,12 @@ MozWinProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) { hdc = BeginPaint(hwnd, &ps); FillRect(hdc, &rc, GetStockBrush(WHITE_BRUSH)); - DrawText(hdc, moz->error, strlen(moz->error), &rc, - DT_SINGLELINE|DT_CENTER|DT_VCENTER); +rc.top += 10; +rc.bottom -= 10; +rc.left += 10; +rc.right -= 10; + DrawText(hdc, moz->error, strlen(moz->error), &rc, 0); +// DT_SINGLELINE|DT_CENTER|DT_VCENTER); EndPaint(hwnd, &ps); } if (msg == WM_MOUSEMOVE) @@ -823,7 +822,7 @@ NPP_StreamAsFile(NPP inst, NPStream* stream, const char* fname) void NPP_Print(NPP inst, NPPrint* platformPrint) { - MSG("NPP_Print"); + MSG("Sorry, printing is not supported."); } int16 diff --git a/apps/mozilla/moz_winres.rc b/apps/mozilla/moz_winres.rc index 736efb5e..189d3aea 100644 --- a/apps/mozilla/moz_winres.rc +++ b/apps/mozilla/moz_winres.rc @@ -12,7 +12,7 @@ BEGIN VALUE "ProductName", "GhostPDF Plug-in\0" VALUE "OriginalFilename", "npmupdf.dll\0" VALUE "FileDescription", "The GhostPDF plugin allows you to browse PDF files with a simple light-weight scrolling interface.<br>See <a href=""http://ghostpdf.com/new.html"">ghostpdf.com</a> for more information.\0" - VALUE "MIMEType", "application/pdf|application/mupdf\0" + VALUE "MIMEType", "application/pdf|application/x-mupdf\0" VALUE "FileExtents", "pdf|foo" VALUE "FileOpenName", "Acrobat PDF File|Acrobat PDF File" END |