Changeset 49 for trunk/pin/src
- Timestamp:
- Dec 17, 2014, 1:36:21 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/pin/src/conv_ppd.c
r3 r49 103 103 #include <ctype.h> 104 104 #ifndef __KLIBC__ 105 105 #include <builtin.h> 106 106 #else 107 108 107 typedef INT *PINT; 108 #define strcmpi strcmp 109 109 #endif 110 110 … … 809 809 if( str == NULL || *str == 0 ) return; 810 810 811 811 while( (*str) !=0 ) str++; // find the end of the string 812 812 str--; // get to last character (step over 0) 813 813 while( isblank(*str) ) str--; // see if the character is blank, keep backstepping … … 1217 1217 if (desPpd.desItems.iResDpi == 0) 1218 1218 { 1219 #if 0 1219 1220 desPpd.desItems.iResDpi = 300; 1221 #else 1222 desPpd.desItems.iResDpi = 1440; // workaround for WordPro printing problem 1223 #endif 1220 1224 } 1221 1225 … … 1381 1385 i = SkipBlank(px); 1382 1386 px += i; 1383 desPpd.desPage.iCustomPageSizeMinHeight = atoi(px);1387 desPpd.desPage.iCustomPageSizeMinHeight = (SHORT)atoi(px); // ALT 1384 1388 i = MovePast( px, ' ' ); 1385 1389 px += i; 1386 desPpd.desPage.iCustomPageSizeMaxHeight = atoi(px);1390 desPpd.desPage.iCustomPageSizeMaxHeight = (SHORT)atoi(px); // ALT 1387 1391 } 1388 1392 } … … 2362 2366 if(stricmp(pCompare,"Resolution")==0) 2363 2367 { 2364 2365 2366 2367 2368 2369 2370 2371 2372 }2368 ULONG uiResStr; 2369 // we are in resolution processing 2370 uiResStr = uiStrLen + MovePast( pbPrBuffer + uiStrLen, ':' ); 2371 uiResStr += SkipBlank( pbPrBuffer + uiResStr ); 2372 if(strnicmp(pbPrBuffer+uiResStr,"\"\"",2)==0) 2373 { 2374 // we found a empty resolution string so skip this one 2375 bSkipEntry = TRUE; 2376 } 2373 2377 } 2374 2378
Note:
See TracChangeset
for help on using the changeset viewer.