tests: update test_new_native.res because line change in array.nit
[nit.git] / lib / mnit / numbers.nit
index 827b4cc..1b7a017 100644 (file)
@@ -24,8 +24,6 @@ class NumberImages
 
        # Images from 0 to 9
        var imgs: Array[Image]
-
-       private init(imgs: Array[Image]) do self.imgs = imgs
 end
 
 redef class App
@@ -45,8 +43,9 @@ redef class Display
                for c in str.chars do
                        var d = c.ascii-'0'.ascii
                        assert d >= 0 and d <= 9
-                       blit(imgs.imgs[d], x, y)
-                       x += imgs.imgs[d].width
+                       var img = imgs.imgs[d]
+                       blit(img, x, y)
+                       x += (img.width.to_f * img.scale).to_i
                end
        end
 end