Fix from_allegro() auxiliary function to get correct alpha values

This commit is contained in:
David Capello 2015-09-18 18:17:33 -03:00
parent 629bea41a8
commit 5e3ba8237a

View File

@ -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)