Skip to content

Commit

Permalink
Fix page size
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Galakhov <[email protected]>
  • Loading branch information
agalakhov committed Sep 19, 2013
1 parent 1e6a517 commit 68db8b8
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/prn_lbp2900.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,12 +146,19 @@ static void lbp2900_page_setup(struct printer_state_s *state,
struct page_dims_s *dims,
unsigned width, unsigned height)
{
/*
A4 4736x6784
Letter 4864x6368
Legal 4864x8192
Executive 4128x6080
3x5 1344x2528
*/
(void) state;
(void) width;
dims->band_size = 70;
dims->line_size = 592;
if (height > 6268)
dims->num_lines = 6268;
dims->line_size = 4736 / 8;
if (height > 6784)
dims->num_lines = 6784;
else
dims->num_lines = height;
}
Expand Down

0 comments on commit 68db8b8

Please sign in to comment.