From bee840bc44fe2ed3500fb54fcd51c9ca1120ee9f Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Mon, 27 Apr 2020 17:14:10 +0100 Subject: [PATCH] Increase verbosity of height asserts in Blitter_32bppBase::ScrollBuffer --- src/blitter/32bpp_base.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blitter/32bpp_base.cpp b/src/blitter/32bpp_base.cpp index 1dc7e444fb..9d02ad8fa5 100644 --- a/src/blitter/32bpp_base.cpp +++ b/src/blitter/32bpp_base.cpp @@ -114,7 +114,7 @@ void Blitter_32bppBase::ScrollBuffer(void *video, int left, int top, int width, /* Decrease height and increase top */ top += scroll_y; height -= scroll_y; - assert(height > 0); + assert_msg(height > 0, "%d, %d, %d, %d, %d, %d", left, top, width, height, scroll_x, scroll_y); /* Adjust left & width */ if (scroll_x >= 0) { @@ -138,7 +138,7 @@ void Blitter_32bppBase::ScrollBuffer(void *video, int left, int top, int width, /* Decrease height. (scroll_y is <=0). */ height += scroll_y; - assert(height > 0); + assert_msg(height > 0, "%d, %d, %d, %d, %d, %d", left, top, width, height, scroll_x, scroll_y); /* Adjust left & width */ if (scroll_x >= 0) {