comparison src/video/uikit/SDL_uikitopengles.m @ 4444:42e1092225f9

Implemented SDL power APIs for iPhoneOS.
author Ryan C. Gordon <icculus@icculus.org>
date Fri, 30 Apr 2010 00:39:31 -0400
parents 99210400e8b9
children 8b03a20b320f
comparison
equal deleted inserted replaced
4443:c598e440c87c 4444:42e1092225f9
71 return -1; 71 return -1;
72 } 72 }
73 return 0; 73 return 0;
74 } 74 }
75 75
76 extern void SDL_UIKit_UpdateBatteryMonitoring(void);
76 77
77 void UIKit_GL_SwapWindow(_THIS, SDL_Window * window) 78 void UIKit_GL_SwapWindow(_THIS, SDL_Window * window)
78 { 79 {
80 #ifdef SDL_POWER_UIKIT
81 // Check once a frame to see if we should turn off the battery monitor.
82 SDL_UIKit_UpdateBatteryMonitoring();
83 #endif
79 84
80 SDL_WindowData *data = (SDL_WindowData *)window->driverdata; 85 SDL_WindowData *data = (SDL_WindowData *)window->driverdata;
81 86
82 if (nil == data->view) { 87 if (nil == data->view) {
83 return; 88 return;