diff options
author | John Willis | 2009-07-28 20:22:38 +0000 |
---|---|---|
committer | John Willis | 2009-07-28 20:22:38 +0000 |
commit | 972cbb4b579bb3767b118e666c761422e20b14b0 (patch) | |
tree | e1aaa23a45e4407516911ded8c396980c2604f77 /backends/platform/gp2xwiz/gp2xwiz-scaler.h | |
parent | 7a6329a29bbe755250586693f8bb651fd3521e95 (diff) | |
download | scummvm-rg350-972cbb4b579bb3767b118e666c761422e20b14b0.tar.gz scummvm-rg350-972cbb4b579bb3767b118e666c761422e20b14b0.tar.bz2 scummvm-rg350-972cbb4b579bb3767b118e666c761422e20b14b0.zip |
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
Diffstat (limited to 'backends/platform/gp2xwiz/gp2xwiz-scaler.h')
-rw-r--r-- | backends/platform/gp2xwiz/gp2xwiz-scaler.h | 45 |
1 files changed, 45 insertions, 0 deletions
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 |