summaryrefslogtreecommitdiff
path: root/apps/mozilla/moz_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mozilla/moz_main.c')
-rw-r--r--apps/mozilla/moz_main.c15
1 files changed, 7 insertions, 8 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