(iOS) Buildfix

This commit is contained in:
Twinaphex 2016-01-15 23:15:49 +01:00
parent 4b9fea617c
commit 794bcc53c3
2 changed files with 3 additions and 1 deletions

View File

@ -161,7 +161,7 @@ float get_backing_scale_factor(void)
#endif
if (!screen)
return 0.0;
#if MAC_OS_X_VERSION_10_7
#if MAC_OS_X_VERSION_10_7 && !defined(IOS)
return screen.backingScaleFactor;
#else
return 1.0f;

View File

@ -143,7 +143,9 @@ static void cocoa_input_poll(void *data)
{
uint32_t i;
cocoa_input_data_t *apple = (cocoa_input_data_t*)data;
#ifndef IOS
float backing_scale_factor = get_backing_scale_factor();
#endif
for (i = 0; i < apple->touch_count; i++)
{