Corretto calcolo di dots_per_line
git-svn-id: svn://10.65.10.50/trunk@971 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
ee3a44fdd8
commit
96c0a54c9c
@ -90,7 +90,10 @@ void TPrinter::set_win_formlen ()
|
|||||||
if (pvr != 0)
|
if (pvr != 0)
|
||||||
{
|
{
|
||||||
_formlen = (int) ((ph / pvr) * _lines_per_inch);
|
_formlen = (int) ((ph / pvr) * _lines_per_inch);
|
||||||
|
|
||||||
_dots_per_line = (int) (pvr / _lines_per_inch);
|
_dots_per_line = (int) (pvr / _lines_per_inch);
|
||||||
|
if (_dots_per_line < 1) _dots_per_line = 1;
|
||||||
|
|
||||||
_vert_offset = (int) (ph % (long) (_formlen * _dots_per_line));
|
_vert_offset = (int) (ph % (long) (_formlen * _dots_per_line));
|
||||||
_horz_offset = 0; // not implemented (font dependent)
|
_horz_offset = 0; // not implemented (font dependent)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user