Merge: Small clean up and improvements to MNit from WBTW
authorJean Privat <jean@pryen.org>
Wed, 22 Apr 2015 06:46:03 +0000 (13:46 +0700)
committerJean Privat <jean@pryen.org>
Wed, 22 Apr 2015 06:46:03 +0000 (13:46 +0700)
commitce3183732a6131540398e5310366fe7e11b94f7b
tree1b3966a7b228eee8185d37c75e99ba6a136e2acb
parentd6f787716470460c5cd3db30734bbe48a55a9ded
parente316d956945fc539c4162b373012afc8de74d96d
Merge: Small clean up and improvements to MNit from WBTW

The new OpenGL parameters affect the display of images for a better pixelated look:
* When zoomed out, the image is smoother, the color values are interpolated from the nearest source pixels.
* When zoomed in, the image is displayed pixelated.

You may recognize the `Int::next_pow` method, `inkscape_tools` use something similar for the same purpose. Actually, with this PR, `inkscape_tools` may not need it anymore and produce smaller PNG files.

Pull-Request: #1284
Reviewed-by: Jean Privat <jean@pryen.org>
Reviewed-by: Romain Chanoir <chanoir.romain@courrier.uqam.ca>