Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fix iOS build when SDL_POWER_UIKIT isn't defined.

Thanks to Vittorio Giovara for the patch!
  • Loading branch information
icculus committed Nov 20, 2011
1 parent ada1968 commit 7925352e4cefd3975709041efec31092ca7c81a7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/uikit/SDL_uikitopengles.m
@@ -79,7 +79,7 @@ int UIKit_GL_MakeCurrent(_THIS, SDL_Window * window, SDL_GLContext context)

void UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
{
#ifdef SDL_POWER_UIKIT
#if SDL_POWER_UIKIT
// Check once a frame to see if we should turn off the battery monitor.
SDL_UIKit_UpdateBatteryMonitoring();
#endif

0 comments on commit 7925352

Please sign in to comment.