summaryrefslogtreecommitdiff
path: root/ui/console-gl.c
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>2017-07-18 03:09:44 -0300
committerGerd Hoffmann <kraxel@redhat.com>2017-11-10 14:27:29 +0100
commit2e9a8565701c22a0090876cb9e2293db4a6fb205 (patch)
tree1591b382e7c08a84f585b5bb21f4d4c70a61910b /ui/console-gl.c
parent777c5f1e436d334a57b650b6951c13d8d2799df0 (diff)
downloadqemu-2e9a8565701c22a0090876cb9e2293db4a6fb205.tar.gz
ui: use QEMU_IS_ALIGNED macro
Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20170718061005.29518-9-f4bug@amsat.org> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'ui/console-gl.c')
-rw-r--r--ui/console-gl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/console-gl.c b/ui/console-gl.c
index 5b77e7aa88..a56e1cd8eb 100644
--- a/ui/console-gl.c
+++ b/ui/console-gl.c
@@ -48,7 +48,7 @@ void surface_gl_create_texture(QemuGLShader *gls,
DisplaySurface *surface)
{
assert(gls);
- assert(surface_stride(surface) % surface_bytes_per_pixel(surface) == 0);
+ assert(QEMU_IS_ALIGNED(surface_stride(surface), surface_bytes_per_pixel(surface)));
switch (surface->format) {
case PIXMAN_BE_b8g8r8x8: