Skip to content

Commit 2595817

Browse files
committed
Attempt flutter#2 to fix CI failures
1 parent 6e49bad commit 2595817

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

shell/platform/windows/direct_manipulation.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,9 @@ DirectManipulationOwner::DirectManipulationOwner(WindowWin32* window)
117117
: window_(window) {}
118118

119119
int DirectManipulationOwner::Init(unsigned int width, unsigned int height) {
120-
HRESULT hr = CoCreateInstance(
121-
CLSID_DirectManipulationManager, nullptr, CLSCTX_INPROC_SERVER,
122-
IID_IDirectManipulationManager, &manager_);
120+
HRESULT hr = CoCreateInstance(CLSID_DirectManipulationManager, nullptr,
121+
CLSCTX_INPROC_SERVER,
122+
IID_IDirectManipulationManager, &manager_);
123123
if (FAILED(hr)) {
124124
FML_LOG(ERROR)
125125
<< "CoCreateInstance(CLSID_DirectManipulationManager) failed";
@@ -137,8 +137,7 @@ int DirectManipulationOwner::Init(unsigned int width, unsigned int height) {
137137
}
138138

139139
hr = manager_->CreateViewport(nullptr, window_->GetWindowHandle(),
140-
IID_IDirectManipulationViewport,
141-
&viewport_);
140+
IID_IDirectManipulationViewport, &viewport_);
142141
if (FAILED(hr)) {
143142
FML_LOG(ERROR) << "CreateViewport failed";
144143
manager_ = nullptr;

shell/platform/windows/flutter_window_winuwp.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,8 @@ bool FlutterWindowWinUWP::OnBitmapSurfaceUpdated(const void* allocation,
395395
PointerLocation FlutterWindowWinUWP::GetPrimaryPointerLocation() {
396396
auto point = window_.PointerPosition();
397397
auto bounds = window_.Bounds();
398-
return {static_cast<size_t>(point.X - bounds.X), static_cast<size_t>(point.Y - bounds.Y)};
398+
return {static_cast<size_t>(point.X - bounds.X),
399+
static_cast<size_t>(point.Y - bounds.Y)};
399400
}
400401

401402
} // namespace flutter

shell/platform/windows/window_binding_handler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ class WindowBindingHandler {
103103
virtual void OnResetImeComposing() = 0;
104104

105105
// Returns the last known position of the primary pointer
106-
virtual PointerLocation GetPrimaryPointerLocation() = 0;
106+
virtual PointerLocation GetPrimaryPointerLocation() = 0;
107107
};
108108

109109
} // namespace flutter

0 commit comments

Comments
 (0)