From 972cbb4b579bb3767b118e666c761422e20b14b0 Mon Sep 17 00:00:00 2001 From: John Willis Date: Tue, 28 Jul 2009 20:22:38 +0000 Subject: GP2XWiz: Add downscale support to the backend using the PocketPCHalfARM scaler from the WinCE backend (Maybe this should be moved into /graphics/scalers at some point?). Also enable all the ARM optemised routines in this and the GP2X backend. svn-id: r42863 --- backends/platform/gp2xwiz/gp2xwiz-scaler.h | 45 ++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 backends/platform/gp2xwiz/gp2xwiz-scaler.h (limited to 'backends/platform/gp2xwiz/gp2xwiz-scaler.h') diff --git a/backends/platform/gp2xwiz/gp2xwiz-scaler.h b/backends/platform/gp2xwiz/gp2xwiz-scaler.h new file mode 100644 index 0000000000..604b9c450b --- /dev/null +++ b/backends/platform/gp2xwiz/gp2xwiz-scaler.h @@ -0,0 +1,45 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + * + */ + +#ifndef GP2XWIZ_SCALER_H +#define GP2XWIZ_SCALER_H + +#include "common/scummsys.h" +#include "common/system.h" +#include "graphics/scaler.h" +#include "graphics/scaler/intern.h" + +// FIXME: For now keep hacks in this header to save polluting the SDL backend. +enum { + GFX_HALF = 12 +}; + +extern SDL_PixelFormat *screenPixelFormat; + +// TODO/FIXME: Move this platform specific scaler into /graphics/scaler and properly merge with the WinCE PocketPCHalf that it is based on. + +DECLARE_SCALER(HalfScale); + +#endif -- cgit v1.2.3 From c51298957864acb8bbc5016ac5131afd2bb9292f Mon Sep 17 00:00:00 2001 From: John Willis Date: Fri, 31 Jul 2009 17:10:20 +0000 Subject: GP2XWiz: Small cleanup of render code to slave as much of loadGFXMode() code back to the OSystem_SDL::loadGFXMode(). version. Also update README-GP2XWIZ. svn-id: r42964 --- backends/platform/gp2xwiz/gp2xwiz-scaler.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'backends/platform/gp2xwiz/gp2xwiz-scaler.h') diff --git a/backends/platform/gp2xwiz/gp2xwiz-scaler.h b/backends/platform/gp2xwiz/gp2xwiz-scaler.h index 604b9c450b..5867693dfb 100644 --- a/backends/platform/gp2xwiz/gp2xwiz-scaler.h +++ b/backends/platform/gp2xwiz/gp2xwiz-scaler.h @@ -36,10 +36,7 @@ enum { GFX_HALF = 12 }; -extern SDL_PixelFormat *screenPixelFormat; - // TODO/FIXME: Move this platform specific scaler into /graphics/scaler and properly merge with the WinCE PocketPCHalf that it is based on. - DECLARE_SCALER(HalfScale); #endif -- cgit v1.2.3