aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/res_view.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-07-06 10:39:22 +0000
committerFilippos Karapetis2009-07-06 10:39:22 +0000
commit522b161becfc702350d84cf431b716b1330286db (patch)
tree9ba220b8c1b8eeb247c6b2d35d8bc5bf1943a234 /engines/sci/gfx/res_view.cpp
parent3ce15cb9b7c77560cd0f2b67e4407b9889ea0f9b (diff)
downloadscummvm-rg350-522b161becfc702350d84cf431b716b1330286db.tar.gz
scummvm-rg350-522b161becfc702350d84cf431b716b1330286db.tar.bz2
scummvm-rg350-522b161becfc702350d84cf431b716b1330286db.zip
Replaced sciprintf() calls with printf, DebugPrintf, warning and error calls
svn-id: r42167
Diffstat (limited to 'engines/sci/gfx/res_view.cpp')
-rw-r--r--engines/sci/gfx/res_view.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sci/gfx/res_view.cpp b/engines/sci/gfx/res_view.cpp
index b30c57f38d..41cb55fa75 100644
--- a/engines/sci/gfx/res_view.cpp
+++ b/engines/sci/gfx/res_view.cpp
@@ -76,7 +76,7 @@ gfx_pixmap_t *gfxr_draw_cel0(int id, int loop, int cel, byte *resource, int size
if (xl <= 0 || yl <= 0) {
gfx_free_pixmap(retval);
- GFXERROR("View %02x:(%d/%d) has invalid xl=%d or yl=%d\n", id, loop, cel, xl, yl);
+ error("View %02x:(%d/%d) has invalid xl=%d or yl=%d", id, loop, cel, xl, yl);
return NULL;
}
@@ -123,7 +123,7 @@ gfx_pixmap_t *gfxr_draw_cel0(int id, int loop, int cel, byte *resource, int size
color = retval->color_key;
if (writepos + count > pixmap_size) {
- GFXERROR("View %02x:(%d/%d) writes RLE data over its designated end at rel. offset 0x%04x\n", id, loop, cel, pos);
+ error("View %02x:(%d/%d) writes RLE data over its designated end at rel. offset 0x%04x", id, loop, cel, pos);
return NULL;
}
@@ -143,7 +143,7 @@ gfxr_view_t *gfxr_draw_view0(int id, byte *resource, int size, int palette) {
int palette_ofs = READ_LE_UINT16(resource + 6);
if (size < V0_FIRST_LOOP_OFFSET + 8) {
- GFXERROR("Attempt to draw empty view %04x\n", id);
+ error("Attempt to draw empty view %04x", id);
return NULL;
}
@@ -166,7 +166,7 @@ gfxr_view_t *gfxr_draw_view0(int id, byte *resource, int size, int palette) {
}
if (view->loops_nr * 2 + V0_FIRST_LOOP_OFFSET > size) {
- GFXERROR("View %04x: Not enough space in resource to accomodate for the claimed %d loops\n", id, view->loops_nr);
+ error("View %04x: Not enough space in resource to accomodate for the claimed %d loops", id, view->loops_nr);
free(view);
return NULL;
}
@@ -346,7 +346,7 @@ gfx_pixmap_t *gfxr_draw_cel1(int id, int loop, int cel, int mirrored, byte *reso
if (xl <= 0 || yl <= 0) {
gfx_free_pixmap(retval);
- GFXERROR("View %02x:(%d/%d) has invalid xl=%d or yl=%d\n", id, loop, cel, xl, yl);
+ error("View %02x:(%d/%d) has invalid xl=%d or yl=%d", id, loop, cel, xl, yl);
return NULL;
}