app_server: handle RGB48 and RGBA64 in switches
Change-Id: I14019b3285e036eba4b73effd79d7e1b4181daeb Reviewed-on: https://review.haiku-os.org/c/haiku/+/4558 Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org> Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
This commit is contained in:
parent
536fc87a33
commit
947d3b862b
@ -98,6 +98,14 @@ DirectWindowInfo::SetState(direct_buffer_state bufferState,
|
||||
fBufferInfo->bytes_per_row = buffer->BytesPerRow();
|
||||
|
||||
switch (buffer->ColorSpace()) {
|
||||
case B_RGBA64:
|
||||
case B_RGBA64_BIG:
|
||||
fBufferInfo->bits_per_pixel = 64;
|
||||
break;
|
||||
case B_RGB48:
|
||||
case B_RGB48_BIG:
|
||||
fBufferInfo->bits_per_pixel = 48;
|
||||
break;
|
||||
case B_RGB32:
|
||||
case B_RGBA32:
|
||||
case B_RGB32_BIG:
|
||||
|
@ -64,6 +64,18 @@ string_for_color_space(color_space format)
|
||||
{
|
||||
const char* name = "<unkown format>";
|
||||
switch (format) {
|
||||
case B_RGBA64:
|
||||
name = "B_RGBA64";
|
||||
break;
|
||||
case B_RGBA64_BIG:
|
||||
name = "B_RGBA64_BIG";
|
||||
break;
|
||||
case B_RGB48:
|
||||
name = "B_RGB48";
|
||||
break;
|
||||
case B_RGB48_BIG:
|
||||
name = "B_RGB48_BIG";
|
||||
break;
|
||||
case B_RGB32:
|
||||
name = "B_RGB32";
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user