ui/xemu: Use surface_format accessor

This commit is contained in:
Matt Borgerson 2025-01-06 04:08:59 -07:00
parent b60fd9ac9c
commit 8ae09abbf5
1 changed files with 1 additions and 1 deletions

View File

@ -928,7 +928,7 @@ void xb_surface_gl_create_texture(DisplaySurface *surface)
{
assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface)));
switch (surface->format) {
switch (surface_format(surface)) {
case PIXMAN_BE_b8g8r8x8:
case PIXMAN_BE_b8g8r8a8:
surface->glformat = GL_BGRA_EXT;