[Scummvm-cvs-logs] SF.net SVN: scummvm:[48793] scummvm/trunk/backends/platform/psp
bluddy at users.sourceforge.net
bluddy at users.sourceforge.net
Sun Apr 25 17:14:58 CEST 2010
Revision: 48793
http://scummvm.svn.sourceforge.net/scummvm/?rev=48793&view=rev
Author: bluddy
Date: 2010-04-25 15:14:57 +0000 (Sun, 25 Apr 2010)
Log Message:
-----------
PSP: A couple of small fixes to the debugging support
Modified Paths:
--------------
scummvm/trunk/backends/platform/psp/display_manager.cpp
scummvm/trunk/backends/platform/psp/trace.h
Modified: scummvm/trunk/backends/platform/psp/display_manager.cpp
===================================================================
--- scummvm/trunk/backends/platform/psp/display_manager.cpp 2010-04-25 15:12:24 UTC (rev 48792)
+++ scummvm/trunk/backends/platform/psp/display_manager.cpp 2010-04-25 15:14:57 UTC (rev 48793)
@@ -23,13 +23,6 @@
*
*/
-//#define __PSP_DEBUG_FUNCS__ /* For debugging function calls */
-//#define __PSP_DEBUG_PRINT__ /* For debug printouts */
-
-//#define ENABLE_RENDER_MEASURE
-
-#include "backends/platform/psp/trace.h"
-
#include <pspgu.h>
#include <pspdisplay.h>
@@ -46,6 +39,13 @@
#define PSP_SCREEN_HEIGHT 272
#define PSP_FRAME_SIZE (PSP_BUFFER_WIDTH * PSP_SCREEN_HEIGHT)
+//#define ENABLE_RENDER_MEASURE /* how long it takes to render a frame */
+
+//#define __PSP_DEBUG_FUNCS__ /* For debugging function calls */
+//#define __PSP_DEBUG_PRINT__ /* For debug printouts */
+
+#include "backends/platform/psp/trace.h"
+
uint32 __attribute__((aligned(16))) MasterGuRenderer::_displayList[2048];
const OSystem::GraphicsMode DisplayManager::_supportedModes[] = {
Modified: scummvm/trunk/backends/platform/psp/trace.h
===================================================================
--- scummvm/trunk/backends/platform/psp/trace.h 2010-04-25 15:12:24 UTC (rev 48792)
+++ scummvm/trunk/backends/platform/psp/trace.h 2010-04-25 15:14:57 UTC (rev 48793)
@@ -103,6 +103,7 @@
// We use this class to print out function calls on the stack in an easy way.
//
+#include "common/str.h"
class PSPStackDebugFuncs {
Common::String _name;
@@ -117,7 +118,7 @@
if (psp_debug_indent < 0) PSP_ERROR("debug indent < 0\n"); \
PSP_INFO_PRINT_INDENT("-- %s\n", _name.c_str());
}
-}
+};
/* We don't need anything but this line at the beginning of each function to debug function calls */
#define DEBUG_ENTER_FUNC() PSPStackDebugFuncs(__PRETTY_FUNCTION__)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list