Clement Espeute 2 лет назад
Родитель
Сommit
7dcd42ab49
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      hrt/impl/Gradient.hx

+ 1 - 1
hrt/impl/Gradient.hx

@@ -106,7 +106,7 @@ class Gradient {
             // and use this copy in the genPixels function. But at this moment we consider that it's a bug
             // and use this copy in the genPixels function. But at this moment we consider that it's a bug
             if(newHash != oldHash) throw "gradient data has changed between first generation and realloc";
             if(newHash != oldHash) throw "gradient data has changed between first generation and realloc";
             #end
             #end
-            var xScale = data.isVertical ? 1 : 0;
+            var xScale = data.isVertical ? 0 : 1;
             var yScale = 1 - xScale;
             var yScale = 1 - xScale;
             var pixels = hxd.Pixels.alloc(data.resolution * xScale + 1 * yScale,1 * xScale + data.resolution * yScale, ARGB);
             var pixels = hxd.Pixels.alloc(data.resolution * xScale + 1 * yScale,1 * xScale + data.resolution * yScale, ARGB);