Revision: 76007
          http://sourceforge.net/p/brlcad/code/76007
Author:   starseeker
Date:     2020-06-03 14:06:35 +0000 (Wed, 03 Jun 2020)
Log Message:
-----------
Flip the data lines so icv2fb result matches pix2fb

Modified Paths:
--------------
    brlcad/branches/dm-fb-merge/src/libdm/fb_generic.c

Modified: brlcad/branches/dm-fb-merge/src/libdm/fb_generic.c
===================================================================
--- brlcad/branches/dm-fb-merge/src/libdm/fb_generic.c  2020-06-03 13:43:19 UTC 
(rev 76006)
+++ brlcad/branches/dm-fb-merge/src/libdm/fb_generic.c  2020-06-03 14:06:35 UTC 
(rev 76007)
@@ -652,7 +652,7 @@
      /* create rows array */
     scanline = (unsigned char **)bu_calloc(img->height, sizeof(unsigned char 
*), "scanline");
     for (unsigned int i=0; i<img->height; i++) {
-       scanline[i] = data+(i*img->width*3);
+       scanline[img->height - i - 1] = data+(i*img->width*3);
     }
 
     /* Get the screen size we were given */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to