diff tools/lib64gfx.c @ 1764:52e31cfc1e36

Implement fake X raster position for the pixel getting functions. At some point this will be turned into real fullscreen raster position.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 12 Jun 2018 04:43:05 +0300
parents b9f3c1796fba
children 88354355b8e1
line wrap: on
line diff
--- a/tools/lib64gfx.c	Tue Jun 12 00:27:37 2018 +0300
+++ b/tools/lib64gfx.c	Tue Jun 12 04:43:05 2018 +0300
@@ -1297,7 +1297,7 @@
                 const int bmoffs = bmoffsy + (x * 8);
                 const int vshift = 7 - (xc & 7);
 
-                *d++ = getPixel(src, bmoffs, scroffs, vshift, 0, yc);
+                *d++ = getPixel(src, bmoffs, scroffs, vshift, 0, xc, yc);
             }
             else
             // Multicolor bitmap and variants
@@ -1313,8 +1313,8 @@
                     switch (src->laceType)
                     {
                         case D64_ILACE_RES:
-                            *d++ = getPixel(src, bmoffs, scroffs, vshift, 0, yc);
-                            *d++ = getPixel(src, bmoffs, scroffs, vshift, 1, yc);
+                            *d++ = getPixel(src, bmoffs, scroffs, vshift, 0, xc, yc);
+                            *d++ = getPixel(src, bmoffs, scroffs, vshift, 1, xc, yc);
                             break;
 
                         default:
@@ -1323,7 +1323,7 @@
                 }
                 else
                 {
-                    *d++ = getPixel(src, bmoffs, scroffs, vshift, 0, yc);
+                    *d++ = getPixel(src, bmoffs, scroffs, vshift, 0, xc, yc);
                 }
             }
         }