changeset 1183:0f85796c6988

Fix calling convention of print callback on OS/2. Also need to send the end document message.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 21 Sep 2011 00:01:06 +0000
parents cef7400dcaba
children 31a78c16c306
files os2/dw.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Tue Sep 20 23:52:36 2011 +0000
+++ b/os2/dw.c	Wed Sep 21 00:01:06 2011 +0000
@@ -10076,7 +10076,7 @@
 {
     HDC hdc;
     char *printername;
-    int (*drawfunc)(HPRINT, HPIXMAP, int, void *);
+    int (* API drawfunc)(HPRINT, HPIXMAP, int, void *);
     void *drawdata;
     unsigned long flags;
     unsigned int startpage, endpage;
@@ -10339,6 +10339,9 @@
         /* Next page */
         DevEscape(p->hdc, DEVESC_NEWFRAME, 0, NULL, NULL, NULL);
     }
+    /* Signal that we are done */
+    DevEscape(p->hdc, DEVESC_ENDDOC, 0, NULL, NULL, NULL);
+    /* Determine the completion code */
     if(p->drawfunc)
         result = DW_ERROR_NONE;
     /* Free memory */