Increase verbosity of height asserts in Blitter_32bppBase::ScrollBuffer

This commit is contained in:
Jonathan G Rennison
2020-04-27 17:14:10 +01:00
parent ad72fad68e
commit bee840bc44

View File

@@ -114,7 +114,7 @@ void Blitter_32bppBase::ScrollBuffer(void *video, int left, int top, int width,
/* Decrease height and increase top */ /* Decrease height and increase top */
top += scroll_y; top += scroll_y;
height -= 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 */ /* Adjust left & width */
if (scroll_x >= 0) { 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). */ /* Decrease height. (scroll_y is <=0). */
height += 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 */ /* Adjust left & width */
if (scroll_x >= 0) { if (scroll_x >= 0) {