hwhw/kindlepdfviewer — pull request #244 by tigran123 (2012-09-02 16:29:11+00:00)
Title: Minor optimization of DjVu drawPage() and set dither bits to 4 to match Kindle's screen.

1. There is no need to create and destroy djvu pixel format on each redraw of the page as this can be done once on open and close of the document.

2. Set dither bits to 4 to help djvulibre choose the most optimal dithering algorithm for the Kindle.

3. Make coding style of "if(" -> "if (" consistent (both instances were used, but "if (" was more frequent).

4. No need to set gamma value in djvu pixelformat as we handle it "manually" in drawPage().