Skip to content

Commit

Permalink
Fix compilation issues related to getAllDisplays (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianEdwardPadilla authored Feb 6, 2023
1 parent e3a3566 commit 6976730
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions windows/screen_retriever_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ BOOL CALLBACK MonitorRepresentationEnumProc(HMONITOR monitor,
flutter::EncodableValue* monitors =
reinterpret_cast<flutter::EncodableValue*>(list_ref);
flutter::EncodableMap display = MonitorToEncodableMap(monitor);
std::get<flutter::EncodableList>(*monitors).push_back(display);
std::get<flutter::EncodableList>(*monitors).push_back(
flutter::EncodableValue(display));
return TRUE;
}

Expand Down Expand Up @@ -192,7 +193,7 @@ void ScreenRetrieverPlugin::GetAllDisplays(
flutter::EncodableMap result_data = flutter::EncodableMap();
result_data[flutter::EncodableValue("displays")] = displays;

result->Success(result_data);
result->Success(flutter::EncodableValue(result_data));
}

void ScreenRetrieverPlugin::HandleMethodCall(
Expand Down

0 comments on commit 6976730

Please sign in to comment.