From 0421037880c536a4b37ca65393b7b3647e7a9bde Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Tue, 3 Mar 2020 12:21:27 +0200 Subject: Lower block lines to 32 Per github/brlaser#52, this will allow lower memory printers to print certain pages containing images. --- lower-block-lines.patch | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 lower-block-lines.patch (limited to 'lower-block-lines.patch') diff --git a/lower-block-lines.patch b/lower-block-lines.patch new file mode 100644 index 0000000..6a59212 --- /dev/null +++ b/lower-block-lines.patch @@ -0,0 +1,27 @@ +--- a/brlaser-6/src/block.h ++++ b/brlaser-6/src/block.h +@@ -59,7 +59,7 @@ + + private: + static const unsigned max_block_size_ = 16350; +- static const unsigned max_lines_per_block_ = 64; ++ static const unsigned max_lines_per_block_ = 32; + + std::vector> lines_; + int line_bytes_; + +--- a/brlaser-6/test/test_block.cc ++++ b/brlaser-6/test/test_block.cc +@@ -37,10 +37,10 @@ + EXPECT(!b.empty()); + }, + +- "A block can contain 64 lines", ++ "A block can contain 32 lines", + [] { + block b; +- for (int i = 0; i < 64; ++i) { ++ for (int i = 0; i < 32; ++i) { + EXPECT(b.line_fits(1)); + b.add_line(vec(1)); + } -- cgit v1.2.1