Skip to content

Commit dc2667e

Browse files
committed
Merge branch 'bugfix-12372' into develop
2 parents 24afe98 + d5e28bc commit dc2667e

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

engine/src/mbliphonedc.mm

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,6 @@ void MCIPhoneCallOnMainFiber(void (*handler)(void *), void *context)
218218
{
219219
common_open();
220220

221-
// IM-2013-07-18: [[ ResIndependence ]] store the device scale in our new static variable
222-
s_iphone_device_scale = [[UIScreen mainScreen] scale];
223-
224221
return True;
225222
}
226223

@@ -1624,6 +1621,10 @@ static bool MCIPhoneWait(double p_sleep)
16241621

16251622
void MCResPlatformInitPixelScaling(void)
16261623
{
1624+
// IM-2014-08-18: [[ Bug 12372 ]] Move platform-specific setup to MCResPlatformInitPixelScaling.
1625+
1626+
// IM-2013-07-18: [[ ResIndependence ]] store the device scale in our new static variable
1627+
s_iphone_device_scale = [[UIScreen mainScreen] scale];
16271628
}
16281629

16291630
// IM-2014-01-30: [[ HiDPI ]] Pixel scaling supported on iOS

0 commit comments

Comments
 (0)