diff options
author | Yotam Barnoy | 2010-05-20 10:36:54 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-05-20 10:36:54 +0000 |
commit | 23eae4e139507f31bc81f4896b71814f9db860de (patch) | |
tree | 7facbb01ee38c643a6089276aefe23f624010e31 /backends/platform/psp/display_manager.h | |
parent | 5f8778395af3140f40f29415d320e7e1155f7ada (diff) | |
download | scummvm-rg350-23eae4e139507f31bc81f4896b71814f9db860de.tar.gz scummvm-rg350-23eae4e139507f31bc81f4896b71814f9db860de.tar.bz2 scummvm-rg350-23eae4e139507f31bc81f4896b71814f9db860de.zip |
PSP: Had to switch to different way of using callbacks as last one wasn't working well. Seems to be working well this way, so I activated it. If need be, deactivate it by commenting out USE_DISPLAY_CALLBACK
svn-id: r49115
Diffstat (limited to 'backends/platform/psp/display_manager.h')
-rw-r--r-- | backends/platform/psp/display_manager.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/backends/platform/psp/display_manager.h b/backends/platform/psp/display_manager.h index 6b81c69b72..5864f39b36 100644 --- a/backends/platform/psp/display_manager.h +++ b/backends/platform/psp/display_manager.h @@ -31,7 +31,7 @@ */ class MasterGuRenderer { public: - MasterGuRenderer() : _lastRenderTime(0) {} + MasterGuRenderer() : _lastRenderTime(0), _renderFinished(true), _callbackId(-1) {} void guInit(); void guPreRender(); void guPostRender(); @@ -42,9 +42,10 @@ private: static uint32 _displayList[]; uint32 _lastRenderTime; // For measuring rendering void guProgramDisplayBufferSizes(); - static bool _renderFinished; - static int guCallbackThread(SceSize, void *); - static void guDisplayCallback(int); + static int guCallbackThread(SceSize, void *); // for the graphics callbacks + static int guCallback(int, int, void *__this); + bool _renderFinished; + int _callbackId; }; class Screen; |