diff -cN gdevlips-2.4.0/gdevlips.c.ORG gdevlips-2.4.0/gdevlips.c *** gdevlips-2.4.0/gdevlips.c.ORG Fri Jun 27 19:48:07 2003 --- gdevlips-2.4.0/gdevlips.c Thu Nov 6 12:52:17 2003 *************** *** 62,68 **** --- 62,76 ---- height = tmp; } for (pt = lips_paper_table; pt->num_unit < 80; pt++) + /* add by shige 11/06 2003 */ + #ifdef USE_LIPS_SIZE_ERROR + if(pt->width+LIPS_SIZE_ERROR_VALUE>=width + && pt->width-LIPS_SIZE_ERROR_VALUE<=width + && pt->height+LIPS_SIZE_ERROR_VALUE>=height + && pt->height-LIPS_SIZE_ERROR_VALUE<=height) + #else if (pt->width == width && pt->height == height) + #endif break; return pt->num_unit + landscape; diff -cN gdevlips-2.4.0/gdevlips.h.ORG gdevlips-2.4.0/gdevlips.h *** gdevlips-2.4.0/gdevlips.h.ORG Fri Jun 27 19:48:07 2003 --- gdevlips-2.4.0/gdevlips.h Thu Nov 6 12:52:30 2003 *************** *** 188,193 **** --- 188,197 ---- bool faceup;\ char mediaType[LIPS_MEDIACHAR_MAX]; + /* added by shige 11/06 2003 */ + #define USE_LIPS_SIZE_ERROR + #define LIPS_SIZE_ERROR_VALUE 2 + int lips_media_selection(int width, int height); int lips_packbits_encode(byte * inBuff, byte * outBuff, int Length); int lips_mode3format_encode(byte * inBuff, byte * outBuff, int Length);