Fixed build error on Linux
parent
9ac3bb7011
commit
8b7ae35356
|
@ -3857,6 +3857,9 @@ SDL_ComputeDiagonalDPI(int hpix, int vpix, float hinches, float vinches)
|
||||||
SDL_sqrt((double)den2));
|
SDL_sqrt((double)den2));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Functions used by iOS application delegates
|
||||||
|
*/
|
||||||
void SDL_OnApplicationWillTerminate()
|
void SDL_OnApplicationWillTerminate()
|
||||||
{
|
{
|
||||||
SDL_SendAppEvent(SDL_APP_TERMINATING);
|
SDL_SendAppEvent(SDL_APP_TERMINATING);
|
||||||
|
@ -3870,6 +3873,7 @@ void SDL_OnApplicationDidReceiveMemoryWarning()
|
||||||
void SDL_OnApplicationWillResignActive()
|
void SDL_OnApplicationWillResignActive()
|
||||||
{
|
{
|
||||||
SDL_VideoDevice *_this = SDL_GetVideoDevice();
|
SDL_VideoDevice *_this = SDL_GetVideoDevice();
|
||||||
|
|
||||||
if (_this) {
|
if (_this) {
|
||||||
SDL_Window *window;
|
SDL_Window *window;
|
||||||
for (window = _this->windows; window != NULL; window = window->next) {
|
for (window = _this->windows; window != NULL; window = window->next) {
|
||||||
|
@ -3892,9 +3896,10 @@ void SDL_OnApplicationWillEnterForeground()
|
||||||
|
|
||||||
void SDL_OnApplicationDidBecomeActive()
|
void SDL_OnApplicationDidBecomeActive()
|
||||||
{
|
{
|
||||||
|
SDL_VideoDevice *_this = SDL_GetVideoDevice();
|
||||||
|
|
||||||
SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
|
SDL_SendAppEvent(SDL_APP_DIDENTERFOREGROUND);
|
||||||
|
|
||||||
SDL_VideoDevice *_this = SDL_GetVideoDevice();
|
|
||||||
if (_this) {
|
if (_this) {
|
||||||
SDL_Window *window;
|
SDL_Window *window;
|
||||||
for (window = _this->windows; window != NULL; window = window->next) {
|
for (window = _this->windows; window != NULL; window = window->next) {
|
||||||
|
|
Loading…
Reference in New Issue