Skip to content

Commit 181b4bb

Browse files
pm215kraxel
authored andcommitted
include/ui/console.h: Delete is_surface_bgr()
The function is_surface_bgr() is no longer used anywhere, so we can delete it. Signed-off-by: Peter Maydell <[email protected]> Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Message-Id: <[email protected]> Signed-off-by: Gerd Hoffmann <[email protected]>
1 parent 9cc0765 commit 181b4bb

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

include/ui/console.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -267,16 +267,6 @@ PixelFormat qemu_default_pixelformat(int bpp);
267267
DisplaySurface *qemu_create_displaysurface(int width, int height);
268268
void qemu_free_displaysurface(DisplaySurface *surface);
269269

270-
static inline int is_surface_bgr(DisplaySurface *surface)
271-
{
272-
if (PIXMAN_FORMAT_BPP(surface->format) == 32 &&
273-
PIXMAN_FORMAT_TYPE(surface->format) == PIXMAN_TYPE_ABGR) {
274-
return 1;
275-
} else {
276-
return 0;
277-
}
278-
}
279-
280270
static inline int is_buffer_shared(DisplaySurface *surface)
281271
{
282272
return !(surface->flags & QEMU_ALLOCATED_FLAG);

0 commit comments

Comments
 (0)