comparison os2/dw.c @ 1339:c6d6788e207f

Similarly need to send DEVESC_ABORTDOC on when canceled on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 13 Nov 2011 22:52:31 +0000
parents e32b5e5595cd
children 184b3aedc2ff
comparison
equal deleted inserted replaced
1338:b23ae7d9f729 1339:c6d6788e207f
10775 { 10775 {
10776 p->drawfunc(print, pixmap, x, p->drawdata); 10776 p->drawfunc(print, pixmap, x, p->drawdata);
10777 /* Next page */ 10777 /* Next page */
10778 DevEscape(p->hdc, DEVESC_NEWFRAME, 0, NULL, NULL, NULL); 10778 DevEscape(p->hdc, DEVESC_NEWFRAME, 0, NULL, NULL, NULL);
10779 } 10779 }
10780 /* Signal that we are done */
10781 DevEscape(p->hdc, DEVESC_ENDDOC, 0, NULL, NULL, NULL);
10782 /* Determine the completion code */ 10780 /* Determine the completion code */
10783 if(p->drawfunc) 10781 if(p->drawfunc)
10782 {
10784 result = DW_ERROR_NONE; 10783 result = DW_ERROR_NONE;
10784 /* Signal that we are done */
10785 DevEscape(p->hdc, DEVESC_ENDDOC, 0, NULL, NULL, NULL);
10786 }
10787 else
10788 DevEscape(p->hdc, DEVESC_ABORTDOC, 0, NULL, NULL, NULL);
10785 /* Free memory */ 10789 /* Free memory */
10786 dw_pixmap_destroy(pixmap); 10790 dw_pixmap_destroy(pixmap);
10787 if(p->printername) 10791 if(p->printername)
10788 free(p->printername); 10792 free(p->printername);
10789 free(p); 10793 free(p);