1. Duangle
  2. Untitled project
  3. pystbimage

Commits

Leonard Ritter  committed 0f061e9

fixed wrong map size when customizing plane size

  • Participants
  • Parent commits 3b18738
  • Branches default

Comments (0)

Files changed (1)

File stbimage/__init__.py

View file
  • Ignore whitespace
     x = x[0]
     y = y[0]
     n = n[0]
-    size = x*y*n
+    if c:
+        size = x*y*c
+    else:
+        size = x*y*n
     return x,y,n,_ffi.cast('char[{0}]'.format(size), result)
 
 # add wrapped functions