mirror of https://github.com/OpenTTD/OpenTTD.git
When using the sprite picker the screen is redrawn so that the sprites under the mouse cursor can be captured. This redraw also caused the sprite aligner window to be redrawn before the OnInvalidateData event that updates its scrollbars with the list count.
This commit is contained in:
parent
3fd5c33ae6
commit
a602845d0a
|
@ -930,6 +930,9 @@ struct SpriteAlignerWindow : Window {
|
|||
}
|
||||
|
||||
case WID_SA_LIST: {
|
||||
/* Don't redraw sprite list while it is still being filled by picker. */
|
||||
if (_newgrf_debug_sprite_picker.mode == SPM_REDRAW) break;
|
||||
|
||||
const NWidgetBase *nwid = this->GetWidget<NWidgetBase>(widget);
|
||||
int step_size = nwid->resize_y;
|
||||
|
||||
|
|
Loading…
Reference in New Issue