Browse Source

Removed unused globals

refactor
suhrke 3 years ago
parent
commit
ea39533860
2 changed files with 11 additions and 11 deletions
  1. 7
    7
      source/Printer.cpp
  2. 4
    4
      source/Printer.h

+ 7
- 7
source/Printer.cpp View File

@@ -248,10 +248,10 @@ int Initializeprinting(t_printdata *print, uint pageWidth, uint pageHeight) {
print->superdata.origsize=print->origsize;
std::cout << "print->superdata.addr: " << print->superdata.addr << std::endl;
std::cout << "print->origsize: " << print->origsize << std::endl;
if (print->compression)
print->superdata.mode|=PBM_COMPRESSED;
if (print->encryption)
print->superdata.mode|=PBM_ENCRYPTED;
//if (print->compression)
// print->superdata.mode|=PBM_COMPRESSED;
//if (print->encryption)
// print->superdata.mode|=PBM_ENCRYPTED;
#ifdef __WIN32
print->superdata.attributes=(uchar)(print->attributes &
(FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_HIDDEN|
@@ -650,9 +650,9 @@ void Printnextpage(t_printdata *print) {
pagesize=print->pagesize;
redundancy=print->redundancy;
black=print->black;
if (print->outbmp.empty() )
bits=print->dibbits;
else
//if (print->outbmp.empty() )
// bits=print->dibbits;
//else
bits=print->drawbits;
// Start new page.
//if (print->outbmp[0]=='\0') {

+ 4
- 4
source/Printer.h View File

@@ -52,8 +52,8 @@ typedef struct t_printdata { // Print control structure
//ulong datasize; // Size of (compressed) data
//ulong alignedsize; // Data size aligned to next 16 bytes
ulong pagesize; // Size of data on page
int compression; // 0: none, 1: fast, 2: maximal
int encryption; // 0: none, 1: encrypt
//int compression; // 0: none, 1: fast, 2: maximal
//int encryption; // 0: none, 1: encrypt
int printheader; // Print header and footer
int printborder; // Print border around bitmap
int redundancy; // Redundancy
@@ -86,7 +86,7 @@ typedef struct t_printdata { // Print control structure
int nx; // Grid dimensions, blocks
int ny; // Grid dimensions, blocks
int border; // Border around the data grid, pixels
uchar *dibbits; // Pointer to DIB bits
//uchar *dibbits; // Pointer to DIB bits
uchar *drawbits; // Pointer to file bitmap bits
uchar bmi[sizeof(BITMAPINFO)+256*sizeof(RGBQUAD)]; // Bitmap info
int startdoc; // Print job started
@@ -139,7 +139,7 @@ inline void print_printdata(t_printdata& pd) {
cout << "nx: " << pd.nx << endl;
cout << "ny: " << pd.ny << endl;
cout << "border: " << pd.border << endl;
cout << "*dibbits: " << *pd.dibbits << endl;
//cout << "*dibbits: " << *pd.dibbits << endl;
cout << "*drawbits: " << *pd.drawbits << endl;
cout << "*bmi: " << *pd.bmi << endl;
cout << "startdoc: " << pd.startdoc << endl;

Loading…
Cancel
Save