@@ -1542,7 +1542,7 @@ void TextBufferTests::ResizeTraditional()
1542
1542
const til::size smallSize = { 5 , 5 };
1543
1543
const TextAttribute defaultAttr (0 );
1544
1544
1545
- TextBuffer buffer (smallSize, defaultAttr, 12 , false , _renderer);
1545
+ TextBuffer buffer (smallSize, defaultAttr, 12 , false , & _renderer);
1546
1546
1547
1547
Log::Comment (L" Fill buffer with some data and do assorted resize operations." );
1548
1548
@@ -1638,7 +1638,7 @@ void TextBufferTests::ResizeTraditionalRotationPreservesHighUnicode()
1638
1638
const til::size bufferSize{ 80 , 10 };
1639
1639
const UINT cursorSize = 12 ;
1640
1640
const TextAttribute attr{ 0x7f };
1641
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
1641
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
1642
1642
1643
1643
// Get a position inside the buffer
1644
1644
const til::point pos{ 2 , 1 };
@@ -1679,7 +1679,7 @@ void TextBufferTests::ScrollBufferRotationPreservesHighUnicode()
1679
1679
const til::size bufferSize{ 80 , 10 };
1680
1680
const UINT cursorSize = 12 ;
1681
1681
const TextAttribute attr{ 0x7f };
1682
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
1682
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
1683
1683
1684
1684
// Get a position inside the buffer
1685
1685
const til::point pos{ 2 , 1 };
@@ -1714,7 +1714,7 @@ void TextBufferTests::ResizeTraditionalHighUnicodeRowRemoval()
1714
1714
const til::size bufferSize{ 80 , 10 };
1715
1715
const UINT cursorSize = 12 ;
1716
1716
const TextAttribute attr{ 0x7f };
1717
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
1717
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
1718
1718
1719
1719
// Get a position inside the buffer in the bottom row
1720
1720
const til::point pos{ 0 , bufferSize.height - 1 };
@@ -1744,7 +1744,7 @@ void TextBufferTests::ResizeTraditionalHighUnicodeColumnRemoval()
1744
1744
const til::size bufferSize{ 80 , 10 };
1745
1745
const UINT cursorSize = 12 ;
1746
1746
const TextAttribute attr{ 0x7f };
1747
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
1747
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
1748
1748
1749
1749
// Get a position inside the buffer in the last column (-2 as the inserted character is 2 columns wide).
1750
1750
const til::point pos{ bufferSize.width - 2 , 0 };
@@ -1771,7 +1771,7 @@ void TextBufferTests::TestOverwriteChars()
1771
1771
til::size bufferSize{ 10 , 3 };
1772
1772
UINT cursorSize = 12 ;
1773
1773
TextAttribute attr{ 0x7f };
1774
- TextBuffer buffer{ bufferSize, attr, cursorSize, false , _renderer };
1774
+ TextBuffer buffer{ bufferSize, attr, cursorSize, false , & _renderer };
1775
1775
auto & row = buffer.GetMutableRowByOffset (0 );
1776
1776
1777
1777
// scientist emoji U+1F9D1 U+200D U+1F52C
@@ -1827,7 +1827,7 @@ void TextBufferTests::TestReplace()
1827
1827
static constexpr til::size bufferSize{ 10 , 3 };
1828
1828
static constexpr UINT cursorSize = 12 ;
1829
1829
const TextAttribute attr{ 0x7f };
1830
- TextBuffer buffer{ bufferSize, attr, cursorSize, false , _renderer };
1830
+ TextBuffer buffer{ bufferSize, attr, cursorSize, false , & _renderer };
1831
1831
1832
1832
#define complex L" \U0001F41B "
1833
1833
@@ -1909,7 +1909,7 @@ void TextBufferTests::TestInsert()
1909
1909
static constexpr TextAttribute attr1{ 0x11111111 , 0x00000000 };
1910
1910
static constexpr TextAttribute attr2{ 0x22222222 , 0x00000000 };
1911
1911
static constexpr TextAttribute attr3{ 0x33333333 , 0x00000000 };
1912
- TextBuffer buffer{ bufferSize, attr1, cursorSize, false , _renderer };
1912
+ TextBuffer buffer{ bufferSize, attr1, cursorSize, false , & _renderer };
1913
1913
1914
1914
struct Test
1915
1915
{
@@ -2048,7 +2048,7 @@ void TextBufferTests::GetWordBoundaries()
2048
2048
til::size bufferSize{ 80 , 9001 };
2049
2049
UINT cursorSize = 12 ;
2050
2050
TextAttribute attr{ 0x7f };
2051
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
2051
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
2052
2052
2053
2053
// Setup: Write lines of text to the buffer
2054
2054
const std::vector<std::wstring> text = { L" word other" ,
@@ -2264,7 +2264,7 @@ void TextBufferTests::MoveByWord()
2264
2264
til::size bufferSize{ 80 , 9001 };
2265
2265
UINT cursorSize = 12 ;
2266
2266
TextAttribute attr{ 0x7f };
2267
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
2267
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
2268
2268
2269
2269
// Setup: Write lines of text to the buffer
2270
2270
const std::vector<std::wstring> text = { L" word other" ,
@@ -2371,7 +2371,7 @@ void TextBufferTests::GetGlyphBoundaries()
2371
2371
til::size bufferSize{ 10 , 10 };
2372
2372
UINT cursorSize = 12 ;
2373
2373
TextAttribute attr{ 0x7f };
2374
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
2374
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
2375
2375
2376
2376
// This is the burrito emoji: 🌯
2377
2377
// It's encoded in UTF-16, as needed by the buffer.
@@ -2407,7 +2407,7 @@ void TextBufferTests::GetTextRects()
2407
2407
til::size bufferSize{ 20 , 50 };
2408
2408
UINT cursorSize = 12 ;
2409
2409
TextAttribute attr{ 0x7f };
2410
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
2410
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
2411
2411
2412
2412
// Setup: Write lines of text to the buffer
2413
2413
const std::vector<std::wstring> text = { L" 0123456789" ,
@@ -2487,7 +2487,7 @@ void TextBufferTests::GetPlainText()
2487
2487
til::size bufferSize{ 10 , 20 };
2488
2488
UINT cursorSize = 12 ;
2489
2489
TextAttribute attr{ 0x7f };
2490
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
2490
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
2491
2491
2492
2492
// Setup: Write lines of text to the buffer
2493
2493
const std::vector<std::wstring> bufferText = { L" 12345" ,
@@ -2575,7 +2575,7 @@ void TextBufferTests::GetPlainText()
2575
2575
til::size bufferSize{ 5 , 20 };
2576
2576
UINT cursorSize = 12 ;
2577
2577
TextAttribute attr{ 0x7f };
2578
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
2578
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
2579
2579
2580
2580
// Setup: Write lines of text to the buffer
2581
2581
const std::vector<std::wstring> bufferText = { L" 1234567" ,
@@ -2704,7 +2704,7 @@ void TextBufferTests::HyperlinkTrim()
2704
2704
const til::size bufferSize{ 80 , 10 };
2705
2705
const UINT cursorSize = 12 ;
2706
2706
const TextAttribute attr{ 0x7f };
2707
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
2707
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
2708
2708
2709
2709
static constexpr std::wstring_view url{ L" test.url" };
2710
2710
static constexpr std::wstring_view otherUrl{ L" other.url" };
@@ -2750,7 +2750,7 @@ void TextBufferTests::NoHyperlinkTrim()
2750
2750
const til::size bufferSize{ 80 , 10 };
2751
2751
const UINT cursorSize = 12 ;
2752
2752
const TextAttribute attr{ 0x7f };
2753
- auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , _renderer);
2753
+ auto _buffer = std::make_unique<TextBuffer>(bufferSize, attr, cursorSize, false , & _renderer);
2754
2754
2755
2755
static constexpr std::wstring_view url{ L" test.url" };
2756
2756
static constexpr std::wstring_view customId{ L" CustomId" };
@@ -2902,7 +2902,7 @@ void TextBufferTests::ReflowPromptRegions()
2902
2902
2903
2903
// After we resize, make sure to get the new textBuffers
2904
2904
til::size newSize{ oldSize.Width () + dx, oldSize.Height () };
2905
- auto newBuffer = std::make_unique<TextBuffer>(newSize, TextAttribute{ 0x7 }, 0 , false , _renderer);
2905
+ auto newBuffer = std::make_unique<TextBuffer>(newSize, TextAttribute{ 0x7 }, 0 , false , & _renderer);
2906
2906
TextBuffer::Reflow (*tbi, *newBuffer);
2907
2907
2908
2908
Log::Comment (L" ========== Checking the host buffer state (after) ==========" );
0 commit comments