nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gamnit: use premultiplied alpha
[nit.git]
/
lib
/
gamnit
/
display_android.nit
diff --git
a/lib/gamnit/display_android.nit
b/lib/gamnit/display_android.nit
index
e9d1b4a
..
6d968f8
100644
(file)
--- a/
lib/gamnit/display_android.nit
+++ b/
lib/gamnit/display_android.nit
@@
-62,7
+62,7
@@
redef class TextureAsset
return
end
- var buf = bmp.copy_pixels
+ var buf = bmp.copy_pixels(unmultiply=not premultiply_alpha)
loaded = true
width = bmp.width.to_f
height = bmp.height.to_f