diff options
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r-- | engines/sci/gfx/gfx_crossblit.cpp | 2 | ||||
-rw-r--r-- | engines/sci/gfx/operations.cpp | 4 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_pal_1.cpp | 2 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_pic_0.cpp | 5 | ||||
-rw-r--r-- | engines/sci/gfx/resource/sci_picfill.cpp | 2 | ||||
-rw-r--r-- | engines/sci/gfx/sbtree.cpp | 3 |
6 files changed, 13 insertions, 5 deletions
diff --git a/engines/sci/gfx/gfx_crossblit.cpp b/engines/sci/gfx/gfx_crossblit.cpp index af55a90490..89be4b911a 100644 --- a/engines/sci/gfx/gfx_crossblit.cpp +++ b/engines/sci/gfx/gfx_crossblit.cpp @@ -35,6 +35,8 @@ ** BYTESPP: Bytes per pixel */ +#include "common/scummsys.h" + /* set optimisations for Win32: */ /* g on: enable global optimizations */ /* t on: use fast code */ diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index 110f52a52c..665a00459c 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -111,6 +111,8 @@ _gfxop_alloc_colors(gfx_state_t *state, gfx_pixmap_color_t *colors, int colors_n gfx_alloc_color(state->driver->mode->palette, colors + i); } +#if 0 +// Unreferenced - removed static void _gfxop_free_colors(gfx_state_t *state, gfx_pixmap_color_t *colors, int colors_nr) { @@ -122,7 +124,7 @@ _gfxop_free_colors(gfx_state_t *state, gfx_pixmap_color_t *colors, int colors_nr for (i = 0; i < colors_nr; i++) gfx_free_color(state->driver->mode->palette, colors + i); } - +#endif int _gfxop_clip(rect_t *rect, rect_t clipzone) /* Returns 1 if nothing is left */ diff --git a/engines/sci/gfx/resource/sci_pal_1.cpp b/engines/sci/gfx/resource/sci_pal_1.cpp index 2a127f4bb3..2f12f8180c 100644 --- a/engines/sci/gfx/resource/sci_pal_1.cpp +++ b/engines/sci/gfx/resource/sci_pal_1.cpp @@ -42,7 +42,7 @@ gfxr_read_pal11(int id, int *colors_nr, byte *resource, int size) { int start_color = resource[25]; int format = resource[32]; - int entry_size; + int entry_size = 0; gfx_pixmap_color_t *retval; byte *pal_data = resource + 37; int _colors_nr = *colors_nr = getUInt16(resource + 29); diff --git a/engines/sci/gfx/resource/sci_pic_0.cpp b/engines/sci/gfx/resource/sci_pic_0.cpp index 6bb6d6f6f7..d3c16724fb 100644 --- a/engines/sci/gfx/resource/sci_pic_0.cpp +++ b/engines/sci/gfx/resource/sci_pic_0.cpp @@ -368,7 +368,8 @@ _gfxr_auxbuf_tag_line(gfxr_pic_t *pic, int pos, int width) pic->aux_map[i+pos] |= FRESH_PAINT; } - +#if 0 +// Unreferenced - removed static void _gfxr_auxbuf_spread(gfxr_pic_t *pic, int *min_x, int *min_y, int *max_x, int *max_y) { @@ -518,7 +519,7 @@ _gfxr_auxbuf_spread(gfxr_pic_t *pic, int *min_x, int *min_y, int *max_x, int *ma (*max_y)++; } - +#endif /*** Regular drawing operations ***/ diff --git a/engines/sci/gfx/resource/sci_picfill.cpp b/engines/sci/gfx/resource/sci_picfill.cpp index c7ecea08a7..e791231589 100644 --- a/engines/sci/gfx/resource/sci_picfill.cpp +++ b/engines/sci/gfx/resource/sci_picfill.cpp @@ -18,6 +18,8 @@ ***************************************************************************/ +#include "sci/include/gfx_resource.h" + /* Generic pic filling code, to be included by sci_pic_0.c * * diff --git a/engines/sci/gfx/sbtree.cpp b/engines/sci/gfx/sbtree.cpp index 48054d4620..3e0f7883ee 100644 --- a/engines/sci/gfx/sbtree.cpp +++ b/engines/sci/gfx/sbtree.cpp @@ -191,6 +191,7 @@ sbtree_get(sbtree_t *tree, int key) return NULL; } +#if 0 static void sbtree_print(sbtree_t *tree) { @@ -216,7 +217,7 @@ sbtree_print(sbtree_t *tree) } fprintf(stderr,"\n"); } - +#endif /***************************** TEST CODE ********************************/ |