>> Unfortunately, transparency is part of depth and it's really not easy to >> distinguish between RGB565 and RGBT555 by depth and bits_per_pixel >> only without introducing something else. > > So perhaps something like this (untested)? > This looks good to me - please have this tested and I'll merge it later if no other comments.