aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx
diff options
context:
space:
mode:
authorFilippos Karapetis2009-06-05 19:04:14 +0000
committerFilippos Karapetis2009-06-05 19:04:14 +0000
commit7c84cca81d4fd7eeadd3d6903d80e1e856c2d5a0 (patch)
tree5eba2272472f6f414b0e44ee73d7e38c8cf48a64 /engines/sci/gfx
parent24cb130b264285ff9635ee8242063ed2afaade11 (diff)
downloadscummvm-rg350-7c84cca81d4fd7eeadd3d6903d80e1e856c2d5a0.tar.gz
scummvm-rg350-7c84cca81d4fd7eeadd3d6903d80e1e856c2d5a0.tar.bz2
scummvm-rg350-7c84cca81d4fd7eeadd3d6903d80e1e856c2d5a0.zip
Moved some more debug commands to ScummVM's coneole and removed some unused code
svn-id: r41198
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r--engines/sci/gfx/gfx_widgets.cpp12
-rw-r--r--engines/sci/gfx/gfx_widgets.h2
2 files changed, 5 insertions, 9 deletions
diff --git a/engines/sci/gfx/gfx_widgets.cpp b/engines/sci/gfx/gfx_widgets.cpp
index ad9464811e..e17ffae6f1 100644
--- a/engines/sci/gfx/gfx_widgets.cpp
+++ b/engines/sci/gfx/gfx_widgets.cpp
@@ -49,10 +49,8 @@ GfxWidget *debug_widgets[GFXW_DEBUG_WIDGETS];
int debug_widget_pos = 0;
static void _gfxw_debug_add_widget(GfxWidget *widget) {
- if (debug_widget_pos == GFXW_DEBUG_WIDGETS) {
- GFXERROR("WIDGET DEBUG: Allocated the maximum number of %d widgets- Aborting!\n", GFXW_DEBUG_WIDGETS);
- BREAKPOINT();
- }
+ if (debug_widget_pos == GFXW_DEBUG_WIDGETS)
+ error("WIDGET DEBUG: Allocated the maximum number of %d widgets- Aborting!\n", GFXW_DEBUG_WIDGETS);
debug_widgets[debug_widget_pos++] = widget;
}
@@ -68,13 +66,11 @@ static void _gfxw_debug_remove_widget(GfxWidget *widget) {
}
if (found > 1) {
- GFXERROR("While removing widget: Found it %d times!\n", found);
- BREAKPOINT();
+ error("While removing widget: Found it %d times!\n", found);
}
if (found == 0) {
- GFXERROR("Attempted removal of unregistered widget!\n");
- BREAKPOINT();
+ error("Attempted removal of unregistered widget!\n");
}
}
#else // !GFXW_DEBUG_WIDGETS
diff --git a/engines/sci/gfx/gfx_widgets.h b/engines/sci/gfx/gfx_widgets.h
index 5b43c2cad6..6c8e848664 100644
--- a/engines/sci/gfx/gfx_widgets.h
+++ b/engines/sci/gfx/gfx_widgets.h
@@ -51,7 +51,7 @@ struct GfxWidget;
/* Enable the next line to keep a list of pointers to all widgets, with up to the specified amount
** of members (/SLOW/) */
-/* #define GFXW_DEBUG_WIDGETS 2048 */
+//#define GFXW_DEBUG_WIDGETS 2048
/* Our strategy for dirty rectangle management */
#define GFXW_DIRTY_STRATEGY GFXOP_DIRTY_FRAMES_CLUSTERS