summaryrefslogtreecommitdiffstats
path: root/native_client_sdk/src/examples/fullscreen_tumbler/tumbler.cc
diff options
context:
space:
mode:
Diffstat (limited to 'native_client_sdk/src/examples/fullscreen_tumbler/tumbler.cc')
-rw-r--r--native_client_sdk/src/examples/fullscreen_tumbler/tumbler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/native_client_sdk/src/examples/fullscreen_tumbler/tumbler.cc b/native_client_sdk/src/examples/fullscreen_tumbler/tumbler.cc
index a4fe68e..cf7d234f 100644
--- a/native_client_sdk/src/examples/fullscreen_tumbler/tumbler.cc
+++ b/native_client_sdk/src/examples/fullscreen_tumbler/tumbler.cc
@@ -130,7 +130,8 @@ bool Tumbler::HandleInputEvent(const pp::InputEvent& event) {
return false;
}
-void Tumbler::DidChangeView(const pp::Rect& position, const pp::Rect& clip) {
+void Tumbler::DidChangeView(const pp::View& view) {
+ pp::Rect position = view.GetRect();
// Note: When switching to fullscreen, the new View position will be a
// rectangle that encompasses the entire screen - e.g. 1900x1200 - with its
// top-left corner at (0, 0). When switching back to the windowed screen the