nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14d688a
)
lib/sdl: amask is an Int, not a Bool
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sat, 3 Oct 2015 22:47:05 +0000
(18:47 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 4 Oct 2015 17:30:19 +0000
(13:30 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/sdl.nit
patch
|
blob
|
history
diff --git
a/lib/sdl.nit
b/lib/sdl.nit
index
ed60975
..
3bbabb5
100644
(file)
--- a/
lib/sdl.nit
+++ b/
lib/sdl.nit
@@
-255,8
+255,8
@@
extern class SDLImage
# Returns a reference to the pixels of the texture
fun pixels: NativeCByteArray `{ return self->pixels; `}
- # Does this texture has an alpha mask?
- fun amask: Bool `{ return self->format->Amask; `}
+ # Mask for the alpha value of each pixel
+ fun amask: Int `{ return self->format->Amask; `}
end
# A simple rectangle