comparison os2/dw.c @ 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 76262040ed5f
comparison
equal deleted inserted replaced
1182:cef7400dcaba 1183:0f85796c6988
10074 10074
10075 typedef struct _dwprint 10075 typedef struct _dwprint
10076 { 10076 {
10077 HDC hdc; 10077 HDC hdc;
10078 char *printername; 10078 char *printername;
10079 int (*drawfunc)(HPRINT, HPIXMAP, int, void *); 10079 int (* API drawfunc)(HPRINT, HPIXMAP, int, void *);
10080 void *drawdata; 10080 void *drawdata;
10081 unsigned long flags; 10081 unsigned long flags;
10082 unsigned int startpage, endpage; 10082 unsigned int startpage, endpage;
10083 char *jobname; 10083 char *jobname;
10084 } DWPrint; 10084 } DWPrint;
10337 { 10337 {
10338 p->drawfunc(print, pixmap, x, p->drawdata); 10338 p->drawfunc(print, pixmap, x, p->drawdata);
10339 /* Next page */ 10339 /* Next page */
10340 DevEscape(p->hdc, DEVESC_NEWFRAME, 0, NULL, NULL, NULL); 10340 DevEscape(p->hdc, DEVESC_NEWFRAME, 0, NULL, NULL, NULL);
10341 } 10341 }
10342 /* Signal that we are done */
10343 DevEscape(p->hdc, DEVESC_ENDDOC, 0, NULL, NULL, NULL);
10344 /* Determine the completion code */
10342 if(p->drawfunc) 10345 if(p->drawfunc)
10343 result = DW_ERROR_NONE; 10346 result = DW_ERROR_NONE;
10344 /* Free memory */ 10347 /* Free memory */
10345 dw_pixmap_destroy(pixmap); 10348 dw_pixmap_destroy(pixmap);
10346 if(p->printername) 10349 if(p->printername)