Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 8, 2021. It is now read-only.

Commit c5b3c33

Browse filesBrowse files
Merge pull request livecode#7388 from livecodeian/bugfix-22801
[[ Bug 22801 ]] Fix crash in HTML5 standalones when getting / setting the effective rect of a stack
2 parents e777cb8 + 3b6b61b commit c5b3c33
Copy full SHA for c5b3c33

File tree

Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed

‎docs/notes/bugfix-22801.md

Copy file name to clipboard
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix crash in HTML5 standalones when getting / setting the effective rect of a stack

‎engine/src/em-stack.cpp

Copy file name to clipboardExpand all lines: engine/src/em-stack.cpp
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ MCStack::view_platform_setgeom(const MCRectangle &p_rect)
149149
return t_old;
150150
}
151151

152+
MCRectangle MCStack::view_platform_getwindowrect() const
153+
{
154+
uint32_t t_window = reinterpret_cast<uint32_t>(window);
155+
156+
return MCEmscriptenGetWindowRect(t_window);
157+
}
158+
152159
/* ================================================================
153160
* Stub functions
154161
* ================================================================ */

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.