From 23eae4e139507f31bc81f4896b71814f9db860de Mon Sep 17 00:00:00 2001 From: Yotam Barnoy Date: Thu, 20 May 2010 10:36:54 +0000 Subject: 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 --- backends/platform/psp/display_manager.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'backends/platform/psp/display_manager.h') 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; -- cgit v1.2.3