view .hgsubstate @ 18659:3277514f36da stable

Fix inverted colors when printing uint8/uint16 images (bug #42107). * gl2ps-renderer.cc (draw_pixels): Convert the data type to GL_FLOAT, and divide by the maximum data type value so that range is [0,1]. * gl2ps-renderer.cc (glps_renderer::draw_pixels): Convert and normalize uint8/uint16 inputs to GL_FLOAT by calling draw_pixels().
author Rik <rik@octave.org>
date Fri, 18 Apr 2014 10:05:08 -0700
parents 18096cd30339
children
line wrap: on
line source

6d4e36653a40da6604507406f2a97e3e64bf9dbf gnulib-hg