framebuffer_session: alpha as Mode attribute

Propagate the want of an alpha channel as attribute of Framebuffer::Mode
instead of passing this property as a separate bool argument.

This clears the way for adding useful accessors for pixel/alpha/input
surfaces to the Mode type as a subsequent step.

Issue #5351
This commit is contained in:
Norman Feske
2024-09-25 11:34:39 +02:00
committed by Christian Helmuth
parent 336d481726
commit e738162bde
38 changed files with 149 additions and 154 deletions

View File

@ -34,6 +34,7 @@ namespace Framebuffer {
struct Mode
{
Area area;
bool alpha;
size_t bytes_per_pixel() const { return 4; }