Clamp the view-size specified number of rows to the max num rows.

This commit is contained in:
baldurk
2016-08-09 00:41:10 +02:00
parent b7431aec46
commit 9d24013f3b
+3
View File
@@ -891,6 +891,9 @@ namespace renderdocui.Windows
if (rows * input.Strides[0] < size)
rows++;
if (rows > DefaultMaxRows)
rows = DefaultMaxRows;
rowRange.Text = rows.ToString();
}