Patch level : 2.1 nopatch
Files correlati : Ricompilazione Demo : [ ] Commento : Tolti set_color duplicati in TPrintwin::paint_row git-svn-id: svn://10.65.10.50/trunk@12212 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
7e53c26ed7
commit
f6f9e3b3dc
@ -232,7 +232,7 @@ void TPrintwin::paint_row(long j)
|
||||
|
||||
if (bg != fg) // Testo vero
|
||||
{
|
||||
set_color(fg, bg);
|
||||
// set_color(fg, bg); // l'ha appena fatta!
|
||||
set_font(printer().fontname(), st, _char_size);
|
||||
|
||||
const char* beg = cp;
|
||||
@ -272,10 +272,9 @@ bool TPrintwin::print_band(
|
||||
|
||||
// @comm Di solito viene disegnata l'intera pagina, ma la cosa dipende dal driver di stampa
|
||||
{
|
||||
// int i,l_ofst = printer().get_line_offset();
|
||||
// const int offset = l_ofst < 0 ? abs(l_ofst) + 1: 0;
|
||||
// const int offset = printer().get_line_offset();
|
||||
// const bool generic = _chary == 1;
|
||||
#ifdef TRC
|
||||
const clock_t start = clock();
|
||||
#endif
|
||||
|
||||
const long first_row = (long)page * _formlen;
|
||||
const int rows = (r.bottom - r.top) / _chary;
|
||||
@ -291,6 +290,12 @@ bool TPrintwin::print_band(
|
||||
else
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef TRC
|
||||
const clock_t total = clock() - start;
|
||||
TRACE("Page %d: %u msec", page, total);
|
||||
#endif
|
||||
|
||||
return (first_row + k < lines);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user