mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Fix from_allegro() auxiliary function to get correct alpha values
This commit is contained in:
parent
629bea41a8
commit
5e3ba8237a
@ -72,7 +72,8 @@ inline gfx::Color from_allegro(int color_depth, int color)
|
||||
return gfx::rgba(
|
||||
getr_depth(color_depth, color),
|
||||
getg_depth(color_depth, color),
|
||||
getb_depth(color_depth, color));
|
||||
getb_depth(color_depth, color),
|
||||
geta_depth(color_depth, color));
|
||||
}
|
||||
|
||||
Alleg4Surface::Alleg4Surface(BITMAP* bmp, DestroyFlag destroy)
|
||||
|
Loading…
Reference in New Issue
Block a user