From 9381362277c6626f53d6ae8a706d7af76bb930e1 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 4 Sep 2009 09:44:06 +0000 Subject: Removed the bilinear and trilinear FreeSCI scalers, and only left the unfiltered scaler in (to be replaced by ScummVM's scaler code). We really don't need bilinear and trilinear filtered scaling in the engine, as ScummVM's filters already perform bilinear and trilinear filtered scaling, if requested svn-id: r43938 --- engines/sci/gfx/operations.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'engines/sci/gfx/operations.cpp') diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index 0fad18d261..2da129ca69 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -195,7 +195,7 @@ static void _gfxop_install_pixmap(GfxDriver *driver, gfx_pixmap_t *pxm) { assert(pxm->palette->getParent() == driver->getMode()->palette); if (pxm->palette_revision != pxm->palette->getRevision()) - gfx_xlate_pixmap(pxm, driver->getMode(), GFX_XLATE_FILTER_NONE); + gfx_xlate_pixmap(pxm, driver->getMode()); if (!driver->getMode()->palette->isDirty()) return; @@ -995,7 +995,7 @@ void gfxop_update(GfxState *state) { if (state->fullscreen_override) { // We've been asked to re-draw the active full-screen image, essentially. rect_t rect = gfx_rect(0, 0, 320, 200); - gfx_xlate_pixmap(state->fullscreen_override, state->driver->getMode(), GFX_XLATE_FILTER_NONE); + gfx_xlate_pixmap(state->fullscreen_override, state->driver->getMode()); gfxop_draw_pixmap(state, state->fullscreen_override, rect, Common::Point(0, 0)); _gfxop_update_box(state, rect); } @@ -1875,11 +1875,7 @@ void gfxop_draw_text(GfxState *state, TextHandle *handle, rect_t zone) { gfx_pixmap_t *pxm = handle->text_pixmaps[i]; if (!pxm->data) { -#ifdef CUSTOM_GRAPHICS_OPTIONS - gfx_xlate_pixmap(pxm, state->driver->getMode(), state->options->text_xlate_filter); -#else - gfx_xlate_pixmap(pxm, state->driver->getMode(), GFX_XLATE_FILTER_NONE); -#endif + gfx_xlate_pixmap(pxm, state->driver->getMode()); } if (!pxm) error("Could not find text pixmap %d/%d", i, handle->lines.size()); -- cgit v1.2.3