File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -712,20 +712,20 @@ void SixelParser::_fillImageBackgroundWhenScrolled()
712
712
if (_filledBackgroundHeight && imageHeight > _filledBackgroundHeight) [[unlikely]]
713
713
{
714
714
_filledBackgroundHeight = (imageHeight + _cellSize.height - 1 ) / _cellSize.height * _cellSize.height ;
715
- const auto additionalFillHeight = _filledBackgroundHeight. value () - _imageCursor.y ;
715
+ const auto additionalFillHeight = * _filledBackgroundHeight - _imageCursor.y ;
716
716
_resizeImageBuffer (additionalFillHeight);
717
717
_fillImageBackground (additionalFillHeight);
718
718
}
719
719
}
720
720
721
- void SixelParser::_decreaseFilledBackgroundHeight (const int decreasedHeight)
721
+ void SixelParser::_decreaseFilledBackgroundHeight (const int decreasedHeight) noexcept
722
722
{
723
723
// Sometimes the top of the image buffer may be clipped (e.g. when the image
724
724
// scrolls off the top of a margin area). When that occurs, our record of
725
725
// the filled height will need to be decreased to account for the new start.
726
726
if (_filledBackgroundHeight) [[unlikely]]
727
727
{
728
- _filledBackgroundHeight = _filledBackgroundHeight. value () - decreasedHeight;
728
+ _filledBackgroundHeight = * _filledBackgroundHeight - decreasedHeight;
729
729
}
730
730
}
731
731
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ namespace Microsoft::Console::VirtualTerminal
112
112
void _fillImageBackground ();
113
113
void _fillImageBackground (const int backgroundHeight);
114
114
void _fillImageBackgroundWhenScrolled ();
115
- void _decreaseFilledBackgroundHeight (const int decreasedHeight);
115
+ void _decreaseFilledBackgroundHeight (const int decreasedHeight) noexcept ;
116
116
void _writeToImageBuffer (const int sixelValue, const int repeatCount);
117
117
void _eraseImageBufferRows (const int rowCount, const til::CoordType startRow = 0 ) noexcept ;
118
118
void _maybeFlushImageBuffer (const bool endOfSequence = false );
You can’t perform that action at this time.
0 commit comments