1.1 --- a/src/ptouch.c Thu Sep 24 22:29:12 2009 +0100 1.2 +++ b/src/ptouch.c Fri Sep 25 10:50:44 2009 +0100 1.3 @@ -115,6 +115,10 @@ 1.4 dev->phaseLo = buf[21]; 1.5 dev->notification = buf[22]; 1.6 1.7 + // Set DPI 1.8 + dev->dpiPrinthead = 180; 1.9 + dev->dpiLabel = 180; 1.10 + 1.11 // Set pixel width (label width in pixels) 1.12 if (dev->mediaWidth >= 24) { 1.13 // Label tape is 24mm or wider. Print head is 128 dots at 180dpi, 1.14 @@ -127,7 +131,7 @@ 1.15 // floating point to convert from inches to mm. The -2 is a 1.16 // safety margin -- one pixel on either side of the label. 1.17 // This is far closer than Brother suggest, but hey-ho. 1.18 - dev->pixelWidth = ((dev->mediaWidth * 180 * 10) / 254) - 2; 1.19 + dev->pixelWidth = ((dev->mediaWidth * dev->dpiPrinthead * 10) / 254) - 2; 1.20 } 1.21 1.22 // Operation succeeded