Skip to content

Commit

Permalink
Fix rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
mcpiroman committed Oct 18, 2019
1 parent 583541d commit 9cb587c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/cascadia/TerminalControl/TermControl.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ namespace winrt::Microsoft::Terminal::TerminalControl::implementation
void _ApplyUISettings();
void _InitializeBackgroundBrush();
void _BackgroundColorChanged(const uint32_t color);
void _InitializeTerminal();
bool _InitializeTerminal();
void _UpdateFont(const bool initialUpdate = false);
void _KeyDownHandler(Windows::Foundation::IInspectable const& sender, Windows::UI::Xaml::Input::KeyRoutedEventArgs const& e);
void _CharacterHandler(Windows::Foundation::IInspectable const& sender, Windows::UI::Xaml::Input::CharacterReceivedRoutedEventArgs const& e);
Expand Down
6 changes: 3 additions & 3 deletions src/cascadia/WindowsTerminal/AppHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ void AppHost::_HandleCreateWindow(const HWND hwnd, RECT proposedRect, winrt::Ter

// Get the size of a window we'd need to host that client rect. This will
// add the titlebar space.
const auto client2win = _window->GetClientToWinSizeDelta(dpix);
adjustedHeight = clientRect.bottom - clientRect.top + client2win.cx;
adjustedWidth = clientRect.right - clientRect.left + client2win.cy;
const auto nonClientSize = _window->GetNonClientSize(dpix);
adjustedHeight = clientRect.bottom - clientRect.top + nonClientSize.cx;
adjustedWidth = clientRect.right - clientRect.left + nonClientSize.cy;
}

const COORD origin{ gsl::narrow<short>(proposedRect.left),
Expand Down
2 changes: 1 addition & 1 deletion src/cascadia/WindowsTerminal/IslandWindow.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class IslandWindow :

virtual void Initialize();

void SetCreateCallback(std::function<void(const HWND, const RECT)> pfn) noexcept;
void SetCreateCallback(std::function<void(const HWND, const RECT, winrt::TerminalApp::LaunchMode& launchMode)> pfn) noexcept;
void SetSnapDimensionCallback(std::function<float(bool widthOrHeight, float dimension)> pfn) noexcept;

void UpdateTheme(const winrt::Windows::UI::Xaml::ElementTheme& requestedTheme);
Expand Down

0 comments on commit 9cb587c

Please sign in to comment.