comparison win/dw.c @ 1338:b23ae7d9f729

AbortDoc() needs to be issued instead of EndDoc() to cancel printing on Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 13 Nov 2011 22:49:09 +0000
parents 63e05ef4a59a
children 1f22addc2722
comparison
equal deleted inserted replaced
1337:e32b5e5595cd 1338:b23ae7d9f729
10566 { 10566 {
10567 StartPage(p->pd.hDC); 10567 StartPage(p->pd.hDC);
10568 p->drawfunc(print, pixmap, x, p->drawdata); 10568 p->drawfunc(print, pixmap, x, p->drawdata);
10569 EndPage(p->pd.hDC); 10569 EndPage(p->pd.hDC);
10570 } 10570 }
10571 EndDoc(p->pd.hDC);
10572 if(p->drawfunc) 10571 if(p->drawfunc)
10572 {
10573 result = DW_ERROR_NONE; 10573 result = DW_ERROR_NONE;
10574 EndDoc(p->pd.hDC);
10575 }
10576 else
10577 AbortDoc(p->pd.hDC);
10574 /* Free memory */ 10578 /* Free memory */
10575 dw_pixmap_destroy(pixmap); 10579 dw_pixmap_destroy(pixmap);
10576 free(p); 10580 free(p);
10577 return result; 10581 return result;
10578 } 10582 }