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

Commit c4b7403

Browse files
Minor tweaks to get the develop branch compiling on Windows.
1 parent ed98f85 commit c4b7403

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

engine/src/debug.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ bool MCB_error(MCExecPoint &ep, uint2 line, uint2 pos, uint2 id)
9898
// Increasing the error lock means that more MCB_error invocations won't occur as
9999
// we step back up the (script) call stack.
100100
MCerrorlock++;
101+
102+
return true;
101103
}
102104

103105
void MCB_done(MCExecPoint &ep)

engine/src/w32dce.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ bool MCScreenDC::platform_getdisplays(bool p_effective, MCDisplay *&r_displays,
187187
}
188188

189189
// IM-2014-01-29: [[ HiDPI ]] We receive notification of desktop changes on Windows, so can safely cache display info
190-
bool MCScreen::platform_displayinfocacheable(void)
190+
bool MCScreenDC::platform_displayinfocacheable(void)
191191
{
192192
return true;
193193
}

engine/src/w32stack.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ void MCStack::realize()
448448
{
449449
MCRegionRef t_region;
450450
t_region = (MCRegionRef)m_window_shape -> handle;
451-
MCRegionOffset(t_region, t_device_rect . x - wrect . left, t_device_rect . y - wrect . top);
451+
MCRegionOffset(t_region, t_rect . x - wrect . left, t_rect . y - wrect . top);
452452
MCRegionSetAsWindowShape(t_region, window->handle.window);
453453

454454
// The window now owns the region.
@@ -709,6 +709,8 @@ bool MCWin32ApplyMaskToRasterRegion(MCGRaster &p_raster, MCGFloat p_raster_scale
709709
// Drawing the mask directly will not work as the effective shape of the drawing operation
710710
// will be defined by the opaque parts of the mask - areas outside will be unaffected. Instead we
711711
// draw a solid rectangle over the intended areas using the mask as a pattern.
712+
MCGFloat t_scale;
713+
t_scale = MCResGetPixelScale();
712714

713715
// MM-2014-01-27: [[ UpdateImageFilters ]] Updated to use new libgraphics image filter types (was nearest).
714716
MCGContextSetFillPattern(t_gcontext, t_mask_image, MCGAffineTransformMakeScale(t_scale, t_scale), kMCGImageFilterNone);

revdb/src/sqlite_connection.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@ for more details.
1414
You should have received a copy of the GNU General Public License
1515
along with LiveCode. If not see <http://www.gnu.org/licenses/>. */
1616

17+
// MM-2014-02-04: [[ Sqlite382 ]] Define string cmp functions for Windows.
18+
#ifdef _WINDOWS
19+
#define strncasecmp _strnicmp
20+
#define strcasecmp _stricmp
21+
#endif
22+
1723
#include "dbsqlite.h"
1824
#include <sqlitedataset/sqlitedataset.h>
1925

0 commit comments

Comments
 (0)