[xoreos-git] [xoreos/xoreos] 461ff4: NWN: Correct the scrolling math for WidgetGridBox
GitHub
noreply at github.com
Sat Oct 22 03:27:48 CEST 2016
Branch: refs/heads/master
Home: https://github.com/xoreos/xoreos
Commit: 461ff46b398cc187964cce1036cf12a5fbcb5ea7
https://github.com/xoreos/xoreos/commit/461ff46b398cc187964cce1036cf12a5fbcb5ea7
Author: Sven Hesse <drmccoy at drmccoy.de>
Date: 2016-10-22 (Sat, 22 Oct 2016)
Changed paths:
M src/engines/nwn/gui/widgets/gridbox.cpp
Log Message:
-----------
NWN: Correct the scrolling math for WidgetGridBox
It now displays the correct number of items in the last row.
Previously, instead of displaying the last N items, it tried to
display the last ItemsInARow - N items. This lead to some items
potentially not being displayed at all
Also, it now doesn't crash when scrolling by dragging the scrollbar
and the items fill out of the last row completely. In this case, the
old code calculated the starting item wrong, being off by the number
of items in the row (i.e. one row).
More information about the xoreos-git
mailing list