Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 425fc26

Browse files
committed
[UWP] Remove 1px offset to make root widget fully shown.
1 parent 59caf06 commit 425fc26

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

shell/platform/windows/display_helper_winuwp.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,12 @@ class DisplayHelperWinUWP {
6868
// Is current context is executing on a large screen device.
6969
bool large_screen_device_ = false;
7070

71-
// Current X overscan compensation factor.
72-
float render_target_x_offset_ = 1.0f;
73-
74-
// Current Y overscan compensation factor.
75-
float render_target_y_offset_ = 1.0f;
71+
// Current overscan compensation factors.
72+
//
73+
// The default value is no offset from the window's top-left, used when
74+
// large_screen_device_ is false (normal desktop).
75+
float render_target_x_offset_ = 0.0f;
76+
float render_target_y_offset_ = 0.0f;
7677
};
7778
} // namespace flutter
7879

0 commit comments

Comments
 (0)