Skip to content

Commit

Permalink
Fix page size and use 600x400 dpi resolution as default
Browse files Browse the repository at this point in the history
  • Loading branch information
missla committed Oct 30, 2015
1 parent e50f0a2 commit dd1ef17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Canon-LBP-2900.ppd
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
*OpenUI *Resolution/Resolution: PickOne
*OrderDependency: 10 AnySetup *Resolution
*DefaultResolution: 600dpi
*Resolution 600dpi/600 DPI: "<</HWResolution[600 600]/cupsBitsPerColor 1/cupsRowCount 70/cupsRowFeed 592/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
*Resolution 600dpi/600 DPI: "<</HWResolution[600 400]/cupsBitsPerColor 1/cupsRowCount 70/cupsRowFeed 592/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
*CloseUI: *Resolution
*DefaultFont: Courier
*Font AvantGarde-Book: Standard "(1.05)" Standard ROM
Expand Down
6 changes: 3 additions & 3 deletions src/prn_lbp2900.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static void lbp2900_page_setup(struct printer_state_s *state,
unsigned width, unsigned height)
{
/*
A4 4736x6784
A4 4736x6778 or 4736x4520
Letter 4864x6368
Legal 4864x8192
Executive 4128x6080
Expand All @@ -237,8 +237,8 @@ static void lbp2900_page_setup(struct printer_state_s *state,
(void) width;
dims->band_size = 70;
dims->line_size = 4736 / 8;
if (height > 6784)
dims->num_lines = 6784;
if (height > 4520)
dims->num_lines = 4520;
else
dims->num_lines = height;
}
Expand Down

0 comments on commit dd1ef17

Please sign in to comment.