Skip to content

Commit

Permalink
[UWP] Remove 1px offset to make root widget fully shown (flutter#27922)
Browse files Browse the repository at this point in the history
  • Loading branch information
moko256 authored Oct 14, 2021
1 parent 02b3cf8 commit 08c7f86
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions shell/platform/windows/display_helper_winuwp.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,12 @@ class DisplayHelperWinUWP {
// Is current context is executing on a large screen device.
bool large_screen_device_ = false;

// Current X overscan compensation factor.
float render_target_x_offset_ = 1.0f;

// Current Y overscan compensation factor.
float render_target_y_offset_ = 1.0f;
// Current overscan compensation factors.
//
// The default value is no offset from the window's top-left, used when
// large_screen_device_ is false (normal desktop).
float render_target_x_offset_ = 0.0f;
float render_target_y_offset_ = 0.0f;
};
} // namespace flutter

Expand Down

0 comments on commit 08c7f86

Please sign in to comment.