Re: Use of lrint() in 'gdk-pixbuf/pixops/pixops.c'



On 04/02/2017 16:07, Martin Guy wrote:
On 04/02/2017, John Emmas via gtk-devel-list <gtk-devel-list gnome org> wrote:
I took a quick look through glib, gtk+ (v2) and gdk-pixbuf but I
can't see lrint getting used anywhere else.  Any chance of a fix?
Thanks. The quick fix is to replace them with

       tmp_width = (int) (src_width * prescale_x + 0.5);
       tmp_height = (int) (src_height * prescale_y + 0.5);


Thanks Martin,

Are you able to make those changes upstream? I can change the lines locally but I wouldn't be able to push to git master. Thanks,

John


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]