Fix unused function warning on OSX

This commit is contained in:
Jonathan G Rennison
2022-01-15 22:33:51 +00:00
parent 29126619a3
commit 6197baee9c

View File

@@ -166,6 +166,7 @@ static void CGDataFreeCallback(void *, const void *data, size_t)
delete[] (const uint32 *)data; delete[] (const uint32 *)data;
} }
#ifdef HAVE_TOUCHBAR_SUPPORT
/** /**
* Render an OTTD sprite to a Cocoa image. * Render an OTTD sprite to a Cocoa image.
* @param sprite_id Sprite to make a NSImage from. * @param sprite_id Sprite to make a NSImage from.
@@ -191,6 +192,7 @@ static NSImage *NSImageFromSprite(SpriteID sprite_id, ZoomLevel zoom)
return [ [ [ NSImage alloc ] initWithCGImage:bitmap.get() size:NSZeroSize ] autorelease ]; return [ [ [ NSImage alloc ] initWithCGImage:bitmap.get() size:NSZeroSize ] autorelease ];
} }
#endif /* HAVE_TOUCHBAR_SUPPORT */
/** /**