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

Commit 7d52934

Browse files
Merge remote-tracking branch 'origin/develop-6.7' into develop-7.0
The changes to review are the one listed in 'Conflicts' and 'Changes to be committed' lists: Others have been successfully merged in. Conflicts: engine/src/paragraf.cpp Changes to be committed: modified: engine/src/exec-interface.cpp modified: engine/src/paragraf.cpp
2 parents 7b9d7fa + 462c197 commit 7d52934

21 files changed

+49
-23
lines changed

docs/notes/bugfix-16177.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# stack height keeps being changed between LC sessions

docs/notes/bugfix-16218.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Popup menu can get corrupted when click-drag out of the list

docs/notes/bugfix-16221.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Hiliting lines in a field are not accurate or working correctly with word selection

docs/notes/bugfix-16283.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# create script only stack doesn't automatically update Project Browser

docs/notes/bugfix-16284.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# First iOS standalone build with Xcode 7.0/7.1 causes "linking for arm" error

engine/src/cmdsc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,8 @@ void MCCreate::exec_ctxt(MCExecContext& ctxt)
10971097
t_new_stack -> setparent(MCdispatcher -> gethome());
10981098
t_new_stack -> message(MCM_new_stack);
10991099
t_new_stack -> setflag(False, F_VISIBLE);
1100+
// PM-2015-10-26: [[ Bug 16283 ]] Automatically update project browser to show newly created script only stacks
1101+
t_new_stack -> open();
11001102
ep . clear();
11011103
t_new_stack -> setasscriptonly(ep);
11021104
optr = t_new_stack;

engine/src/desktop-dc.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ bool MCScreenDC::platform_getdisplays(bool p_effective, MCDisplay *& r_displays,
255255
return true;
256256
}
257257

258-
void MCScreenDC::platform_boundrect(MCRectangle &rect, Boolean title, Window_mode mode)
258+
void MCScreenDC::platform_boundrect(MCRectangle &rect, Boolean title, Window_mode mode, Boolean resizable)
259259
{
260260
MCRectangle srect;
261261

@@ -298,7 +298,8 @@ void MCScreenDC::platform_boundrect(MCRectangle &rect, Boolean title, Window_mod
298298
rect.x = srect . x;
299299
if (rect.x + rect.width > srect.x + srect . width - sr)
300300
{
301-
if (rect.width > srect . width - sw)
301+
// PM-2015-10-12: [[ Bug 16177 ]] Modify stack's rect only if stack is resizable
302+
if (rect.width > srect . width - sw && resizable)
302303
rect.width = srect . width - sw;
303304
rect.x = srect . x + srect . width - rect.width - sr;
304305
}
@@ -307,7 +308,8 @@ void MCScreenDC::platform_boundrect(MCRectangle &rect, Boolean title, Window_mod
307308
rect.y = srect.y;
308309
if (rect.y + rect.height > srect . y + srect . height - sb)
309310
{
310-
if (rect.height > srect . height - sh)
311+
// PM-2015-10-12: [[ Bug 16177 ]] Modify stack's rect only if stack is resizable
312+
if (rect.height > srect . height - sh && resizable)
311313
rect.height = srect . height - sh;
312314
rect.y = srect . y + srect . height - rect.height - sb;
313315
}

engine/src/desktop-dc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ class MCScreenDC: public MCUIDC
8080
virtual uint16_t platform_getwidth(void);
8181
virtual uint16_t platform_getheight(void);
8282
virtual bool platform_getdisplays(bool p_effective, MCDisplay *&r_displays, uint32_t &r_count);
83-
virtual void platform_boundrect(MCRectangle &rect, Boolean title, Window_mode m);
83+
virtual void platform_boundrect(MCRectangle &rect, Boolean title, Window_mode m, Boolean resizable);
8484

8585
virtual void resetcursors();
8686
virtual void setcursor(Window w, MCCursorRef c);

engine/src/exec-interface.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3015,6 +3015,8 @@ void MCInterfaceExecCreateScriptOnlyStack(MCExecContext& ctxt, MCStringRef p_new
30153015
t_new_stack -> setparent(MCdispatcher -> gethome());
30163016
t_new_stack -> message(MCM_new_stack);
30173017
t_new_stack -> setflag(False, F_VISIBLE);
3018+
// PM-2015-10-26: [[ Bug 16283 ]] Automatically update project browser to show newly created script only stacks
3019+
t_new_stack -> open();
30183020
t_new_stack -> setasscriptonly(kMCEmptyString);
30193021

30203022
if (p_new_name != nil)

engine/src/lnxdc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class MCScreenDC : public MCUIDC
255255
virtual uint16_t platform_getheight(void);
256256
virtual bool platform_getdisplays(bool p_effective, MCDisplay *&r_displays, uint32_t &r_count);
257257
virtual bool platform_getwindowgeometry(Window w, MCRectangle &drect);
258-
virtual void platform_boundrect(MCRectangle &rect, Boolean title, Window_mode m);
258+
virtual void platform_boundrect(MCRectangle &rect, Boolean title, Window_mode m, Boolean resizable);
259259
virtual void platform_querymouse(int16_t &r_x, int16_t &r_y);
260260
virtual void platform_setmouse(int16_t p_x, int16_t p_y);
261261

0 commit comments

Comments
 (0)