Skip to content

Commit

Permalink
Merge pull request #11 from missla/master
Browse files Browse the repository at this point in the history
Restore resolution at 600x600dpi
  • Loading branch information
agalakhov committed Aug 12, 2016
2 parents f205f77 + 63788ce commit 7718f66
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 400]/cupsBitsPerColor 1/cupsRowCount 70/cupsRowFeed 592/cupsRowStep 0/cupsColorSpace 3>>setpagedevice"
*Resolution 600dpi/600 DPI: "<</HWResolution[600 600]/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 @@ -158,7 +158,7 @@ static bool lbp2900_page_prologue(struct printer_state_s *state, const struct pa

uint8_t pageparms[] = {
0x00, 0x00, 0x30, 0x2A, /* sz */ 0x02, 0x00, 0x00, 0x00,
0x1C, 0x1C, 0x1C, 0x1C, pt1, /* adapt */ 0x81, 0x04, 0x00,
0x1C, 0x1C, 0x1C, 0x1C, pt1, /* adapt */ 0x11, 0x04, 0x00,
0x01, 0x01, /* img ref */ 0x00, save, 0x00, 0x00,
/* height margin 118 */ 0x76, 0x00,
/* width margin 78 */ 0x4e, 0x00,
Expand Down Expand Up @@ -278,8 +278,8 @@ static void lbp2900_page_setup(struct printer_state_s *state,
(void) width;
dims->band_size = 70;
dims->line_size = 4736 / 8;
if (height > 4520)
dims->num_lines = 4520;
if (height > 6778)
dims->num_lines = 6778;
else
dims->num_lines = height;
}
Expand Down

0 comments on commit 7718f66

Please sign in to comment.