diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2018-03-09 21:21:23 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2018-03-09 21:21:23 +0000 |
| commit | 7b3e9347ba105aa2a2015de5a4b457ebb55043fa (patch) | |
| tree | f4fab0c173bcc8fb1eb0837e10c37741d9c0d20a /src/drivers/Android/Fl_Android_Application.cxx | |
| parent | 7f78b1ef1468bb8242fb7fb37e3f27d0a8052ce1 (diff) | |
Android: move Android specific platform events to FL/android.H
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12724 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/drivers/Android/Fl_Android_Application.cxx')
| -rw-r--r-- | src/drivers/Android/Fl_Android_Application.cxx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/drivers/Android/Fl_Android_Application.cxx b/src/drivers/Android/Fl_Android_Application.cxx index 757f366da..7163fc559 100644 --- a/src/drivers/Android/Fl_Android_Application.cxx +++ b/src/drivers/Android/Fl_Android_Application.cxx @@ -62,9 +62,6 @@ size_t Fl_Android_Application::pSavedStateSize = 0; // The ALooper associated with the app's thread. ALooper* Fl_Android_Application::pMsgPipeLooper = 0; -// The ALooper tht interrupts the main loop when FLTK requests a redraw. -ALooper* Fl_Android_Application::pRedrawLooper = 0; - // When non-NULL, this is the input queue from which the app will // receive user input events. AInputQueue* Fl_Android_Application::pInputQueue = 0; @@ -103,10 +100,10 @@ struct Fl_Android_Application::android_poll_source Fl_Android_Application::pInpu int Fl_Android_Application::pRunning = 0; int Fl_Android_Application::pStateSaved = 0; int Fl_Android_Application::pDestroyed = 0; -int Fl_Android_Application::pRedrawNeeded = 0; +//int Fl_Android_Application::pRedrawNeeded = 0; AInputQueue *Fl_Android_Application::pPendingInputQueue = 0; ANativeWindow *Fl_Android_Application::pPendingWindow = 0; -ARect Fl_Android_Application::pPendingContentRect = { 0 }; +//ARect Fl_Android_Application::pPendingContentRect = { 0 }; @@ -173,6 +170,8 @@ int8_t Fl_Android_Application::read_cmd() case APP_CMD_SAVE_STATE: free_saved_state(); break; + default: + break; } return cmd; } else { @@ -276,6 +275,10 @@ void Fl_Android_Application::pre_exec_cmd(int8_t cmd) case APP_CMD_DESTROY: LOGV("APP_CMD_DESTROY\n"); pDestroyRequested = 1; + // FIXME: see Fl::program_should_quit() + break; + + default: break; } } |
