This commit is contained in:
Joshua Granick
2015-07-21 10:38:29 -07:00
parent d6750818fc
commit fadc285209
4 changed files with 32 additions and 50 deletions

View File

@@ -4,6 +4,7 @@
#include <graphics/PixelFormat.h>
#include <stdint.h>
#include <math.h>
namespace lime {
@@ -18,8 +19,7 @@ namespace lime {
for (int i = 0; i < 256; i++) {
// Seem to need +1 to get the same results as Haxe in multiplyAlpha
__alpha16[i] = (i + 1) * ((1 << 16) / 0xFF);
__alpha16[i] = ceil ((i + 1) * ((1 << 16) / 0xFF));
}