Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

[19277] Ensure the effective rect is fetched correctly when screen is locked #6815

Merged
merged 6 commits into from
Dec 17, 2018

Conversation

livecodepanos
Copy link
Contributor

@livecodepanos livecodepanos commented Dec 5, 2018

No description provided.

@livecodepanos livecodepanos added this to the 9.0.3-rc-1 milestone Dec 5, 2018
@livecodepanos livecodepanos changed the title [19277] Ensure the effective rect is fetched correctly when screen is… [19277] Ensure the effective rect is fetched correctly when screen is locked Dec 5, 2018
{
MCRectangle t_content_rect, t_diff_rect;
MCscreen->platform_getwindowgeometry(window, t_content_rect);
t_diff_rect = MCU_subtract_rect(t_content_rect, t_frame_rect);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think MCU_subtract_rect is correc there - t_content_rect here is the window's current rect, and t_frame_rect is the window's current effective rect. The frame rect will contain the content rect, which gives you four margins - one for top, left, right and bottom. You then want to apply these margins to the rect of the stack - e.g. left of effective rect = rect.left + (t_content_rect.x - t_frame_rect.x).

@livecodepanos livecodepanos removed the WIP label Dec 12, 2018
@montegoulding
Copy link
Member

@livecodepanos this looks testable when running in ui mode to me so I'll add the needs tests label

@montegoulding
Copy link
Member

@livecode-vulcan review ok e90667f

@livecode-vulcan
Copy link
Contributor

💙 review by @montegoulding ok e90667f

livecode-vulcan added a commit that referenced this pull request Dec 16, 2018
[19277] Ensure the effective rect is fetched correctly when screen is locked
@livecode-vulcan
Copy link
Contributor

😞 test failure e90667f

  • try-community-armv6-android-sdk26_ndk16r15: success
  • try-community-armv7-android-sdk26_ndk16r15: success
  • try-community-arm64-android-sdk26_ndk16r15: success
  • try-community-x86-android-sdk26_ndk16r15: success
  • try-community-x86_64-android-sdk26_ndk16r15: success
  • try-community-js-emscripten-sdk1.35: success
  • try-community-universal-ios-iphoneos12.0: success
  • try-community-universal-ios-iphonesimulator12.0: success
  • try-community-universal-mac-macosx10.9: success
  • try-community-x86-linux-debian8: success
  • try-community-x86_64-linux-debian8: success
  • try-community-x86-win32: failure
  • try-community-x86_64-win32: pending

@montegoulding
Copy link
Member

@livecode-vulcan review ok 0011c72

@livecode-vulcan
Copy link
Contributor

💙 review by @montegoulding ok 0011c72

livecode-vulcan added a commit that referenced this pull request Dec 17, 2018
[19277] Ensure the effective rect is fetched correctly when screen is locked
@livecode-vulcan
Copy link
Contributor

😎 test success 0011c72

  • try-community-armv6-android-sdk26_ndk16r15: success
  • try-community-armv7-android-sdk26_ndk16r15: success
  • try-community-arm64-android-sdk26_ndk16r15: success
  • try-community-x86-android-sdk26_ndk16r15: success
  • try-community-x86_64-android-sdk26_ndk16r15: success
  • try-community-js-emscripten-sdk1.35: success
  • try-community-universal-ios-iphoneos12.0: success
  • try-community-universal-ios-iphonesimulator12.0: success
  • try-community-universal-mac-macosx10.9: success
  • try-community-x86-linux-debian8: success
  • try-community-x86_64-linux-debian8: success
  • try-community-x86-win32: success
  • try-community-x86_64-win32: success

@livecodepanos livecodepanos merged commit cb735d9 into livecode:develop-9.0 Dec 17, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants