Increase verbosity of height asserts in Blitter_32bppBase::ScrollBuffer
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user