diff options
author | Matthew Hoops | 2011-08-07 20:11:27 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-08-07 20:11:27 -0400 |
commit | c05c42ecc60c8f928628787272743f169a0d5903 (patch) | |
tree | f2b06be630676b7302a1fb62940099b2ec71442d /graphics | |
parent | e43a6671fc04f2c67b8efa2c0fdfdd6ec0ea1023 (diff) | |
parent | 45dc303159d5bbe77a351df31e6f2d2f97a3412d (diff) | |
download | scummvm-rg350-c05c42ecc60c8f928628787272743f169a0d5903.tar.gz scummvm-rg350-c05c42ecc60c8f928628787272743f169a0d5903.tar.bz2 scummvm-rg350-c05c42ecc60c8f928628787272743f169a0d5903.zip |
Merge remote branch 'upstream/master' into soccer
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/fonts/bdf.cpp | 1 | ||||
-rw-r--r-- | graphics/fonts/bdf.h | 1 | ||||
-rw-r--r-- | graphics/imagedec.h | 1 | ||||
-rw-r--r-- | graphics/primitives.h | 1 | ||||
-rw-r--r-- | graphics/scaler/aspect.cpp | 1 | ||||
-rw-r--r-- | graphics/scaler/hq2x_i386.asm | 1 | ||||
-rw-r--r-- | graphics/scaler/hq3x_i386.asm | 1 | ||||
-rw-r--r-- | graphics/scaler/scale2x.cpp | 1 | ||||
-rw-r--r-- | graphics/scaler/scale2x.h | 1 | ||||
-rw-r--r-- | graphics/scaler/scale3x.cpp | 1 | ||||
-rw-r--r-- | graphics/scaler/scale3x.h | 1 | ||||
-rw-r--r-- | graphics/scaler/scalebit.cpp | 1 | ||||
-rw-r--r-- | graphics/scaler/scalebit.h | 1 | ||||
-rw-r--r-- | graphics/scaler/thumbnail_intern.cpp | 1 | ||||
-rw-r--r-- | graphics/sjis.cpp | 1 | ||||
-rw-r--r-- | graphics/sjis.h | 1 | ||||
-rw-r--r-- | graphics/thumbnail.cpp | 18 | ||||
-rw-r--r-- | graphics/thumbnail.h | 3 | ||||
-rw-r--r-- | graphics/yuv_to_rgb.cpp | 7 | ||||
-rw-r--r-- | graphics/yuv_to_rgb.h | 7 |
20 files changed, 14 insertions, 37 deletions
diff --git a/graphics/fonts/bdf.cpp b/graphics/fonts/bdf.cpp index b7d0f7749e..cf2e38d3f1 100644 --- a/graphics/fonts/bdf.cpp +++ b/graphics/fonts/bdf.cpp @@ -793,4 +793,3 @@ BdfFont *BdfFont::loadFromCache(Common::SeekableReadStream &stream) { } } // End of namespace Graphics - diff --git a/graphics/fonts/bdf.h b/graphics/fonts/bdf.h index 31c009eb27..0d60693736 100644 --- a/graphics/fonts/bdf.h +++ b/graphics/fonts/bdf.h @@ -97,4 +97,3 @@ public: } // End of namespace Graphics #endif - diff --git a/graphics/imagedec.h b/graphics/imagedec.h index da45ecca4f..e839d097b2 100644 --- a/graphics/imagedec.h +++ b/graphics/imagedec.h @@ -64,4 +64,3 @@ public: } // End of namespace Graphics #endif - diff --git a/graphics/primitives.h b/graphics/primitives.h index 6055404b96..0ab2dabcd8 100644 --- a/graphics/primitives.h +++ b/graphics/primitives.h @@ -30,4 +30,3 @@ void drawThickLine(int x0, int y0, int x1, int y1, int thickness, int color, voi } // End of namespace Graphics #endif - diff --git a/graphics/scaler/aspect.cpp b/graphics/scaler/aspect.cpp index b12fac418b..7ad37b1ba8 100644 --- a/graphics/scaler/aspect.cpp +++ b/graphics/scaler/aspect.cpp @@ -292,4 +292,3 @@ void Normal2xAspect(const uint8 *srcPtr, } #endif // USE_ARM_SCALER_ASM - diff --git a/graphics/scaler/hq2x_i386.asm b/graphics/scaler/hq2x_i386.asm index 9393f00e01..4f8e0713b7 100644 --- a/graphics/scaler/hq2x_i386.asm +++ b/graphics/scaler/hq2x_i386.asm @@ -1901,4 +1901,3 @@ FuncTable2: %ifidn __OUTPUT_FORMAT__,elf section .note.GNU-stack noalloc noexec nowrite progbits %endif - diff --git a/graphics/scaler/hq3x_i386.asm b/graphics/scaler/hq3x_i386.asm index 92c0058711..209a7b8a34 100644 --- a/graphics/scaler/hq3x_i386.asm +++ b/graphics/scaler/hq3x_i386.asm @@ -2477,4 +2477,3 @@ FuncTable2: %ifidn __OUTPUT_FORMAT__,elf section .note.GNU-stack noalloc noexec nowrite progbits %endif - diff --git a/graphics/scaler/scale2x.cpp b/graphics/scaler/scale2x.cpp index ec2aa2086e..ac2dbadefa 100644 --- a/graphics/scaler/scale2x.cpp +++ b/graphics/scaler/scale2x.cpp @@ -500,4 +500,3 @@ void scale2x_32_mmx(scale2x_uint32* dst0, scale2x_uint32* dst1, const scale2x_ui } #endif - diff --git a/graphics/scaler/scale2x.h b/graphics/scaler/scale2x.h index a6365c113e..b0c887d43c 100644 --- a/graphics/scaler/scale2x.h +++ b/graphics/scaler/scale2x.h @@ -66,4 +66,3 @@ extern "C" void scale2x_32_arm(scale2x_uint32* dst0, scale2x_uint32* dst1, const #endif #endif - diff --git a/graphics/scaler/scale3x.cpp b/graphics/scaler/scale3x.cpp index 788c8694c5..4ce738a37a 100644 --- a/graphics/scaler/scale3x.cpp +++ b/graphics/scaler/scale3x.cpp @@ -220,4 +220,3 @@ void scale3x_32_def(scale3x_uint32* dst0, scale3x_uint32* dst1, scale3x_uint32* scale3x_32_def_center(dst1, src0, src1, src2, count); scale3x_32_def_border(dst2, src2, src1, src0, count); } - diff --git a/graphics/scaler/scale3x.h b/graphics/scaler/scale3x.h index 671a207570..ad5604d086 100644 --- a/graphics/scaler/scale3x.h +++ b/graphics/scaler/scale3x.h @@ -38,4 +38,3 @@ void scale3x_16_def(scale3x_uint16* dst0, scale3x_uint16* dst1, scale3x_uint16* void scale3x_32_def(scale3x_uint32* dst0, scale3x_uint32* dst1, scale3x_uint32* dst2, const scale3x_uint32* src0, const scale3x_uint32* src1, const scale3x_uint32* src2, unsigned count); #endif - diff --git a/graphics/scaler/scalebit.cpp b/graphics/scaler/scalebit.cpp index c6d2a0d752..c8b54f4b25 100644 --- a/graphics/scaler/scalebit.cpp +++ b/graphics/scaler/scalebit.cpp @@ -340,4 +340,3 @@ void scale(unsigned scale, void* void_dst, unsigned dst_slice, const void* void_ break; } } - diff --git a/graphics/scaler/scalebit.h b/graphics/scaler/scalebit.h index dd46883f97..6e4a30caf0 100644 --- a/graphics/scaler/scalebit.h +++ b/graphics/scaler/scalebit.h @@ -40,4 +40,3 @@ int scale_precondition(unsigned scale, unsigned pixel, unsigned width, unsigned void scale(unsigned scale, void* void_dst, unsigned dst_slice, const void* void_src, unsigned src_slice, unsigned pixel, unsigned width, unsigned height); #endif - diff --git a/graphics/scaler/thumbnail_intern.cpp b/graphics/scaler/thumbnail_intern.cpp index 154763070a..ef540b8cd8 100644 --- a/graphics/scaler/thumbnail_intern.cpp +++ b/graphics/scaler/thumbnail_intern.cpp @@ -236,4 +236,3 @@ bool createThumbnail(Graphics::Surface *surf, const uint8 *pixels, int w, int h, return createThumbnail(*surf, screen); } - diff --git a/graphics/sjis.cpp b/graphics/sjis.cpp index be078a4da9..4dd24d9dcc 100644 --- a/graphics/sjis.cpp +++ b/graphics/sjis.cpp @@ -655,4 +655,3 @@ void FontSjisSVM::mapKANJIChar(const uint8 fB, const uint8 sB, int &base, int &i } // End of namespace Graphics #endif // defined(GRAPHICS_SJIS_H) - diff --git a/graphics/sjis.h b/graphics/sjis.h index 4b54da53b4..185b6cc593 100644 --- a/graphics/sjis.h +++ b/graphics/sjis.h @@ -272,4 +272,3 @@ private: #endif #endif // engine and dynamic plugins guard - diff --git a/graphics/thumbnail.cpp b/graphics/thumbnail.cpp index 5fad25967e..db61d828d2 100644 --- a/graphics/thumbnail.cpp +++ b/graphics/thumbnail.cpp @@ -94,23 +94,24 @@ bool skipThumbnail(Common::SeekableReadStream &in) { return true; } -bool loadThumbnail(Common::SeekableReadStream &in, Graphics::Surface &to) { +Graphics::Surface *loadThumbnail(Common::SeekableReadStream &in) { ThumbnailHeader header; if (!loadHeader(in, header, true)) - return false; + return 0; if (header.bpp != 2) { warning("trying to load thumbnail with unsupported bit depth %d", header.bpp); - return false; + return 0; } Graphics::PixelFormat format = g_system->getOverlayFormat(); - to.create(header.width, header.height, format); + Graphics::Surface *const to = new Graphics::Surface(); + to->create(header.width, header.height, format); - OverlayColor *pixels = (OverlayColor *)to.pixels; - for (int y = 0; y < to.h; ++y) { - for (int x = 0; x < to.w; ++x) { + OverlayColor *pixels = (OverlayColor *)to->pixels; + for (int y = 0; y < to->h; ++y) { + for (int x = 0; x < to->w; ++x) { uint8 r, g, b; colorToRGB<ColorMasks<565> >(in.readUint16BE(), r, g, b); @@ -119,7 +120,7 @@ bool loadThumbnail(Common::SeekableReadStream &in, Graphics::Surface &to) { } } - return true; + return to; } bool saveThumbnail(Common::WriteStream &out) { @@ -166,4 +167,3 @@ bool saveThumbnail(Common::WriteStream &out, const Graphics::Surface &thumb) { } } // End of namespace Graphics - diff --git a/graphics/thumbnail.h b/graphics/thumbnail.h index bf48fd1189..df99568f42 100644 --- a/graphics/thumbnail.h +++ b/graphics/thumbnail.h @@ -53,7 +53,7 @@ bool skipThumbnail(Common::SeekableReadStream &in); * The loaded thumbnail will be automatically converted to the * current overlay pixelformat. */ -bool loadThumbnail(Common::SeekableReadStream &in, Graphics::Surface &to); +Graphics::Surface *loadThumbnail(Common::SeekableReadStream &in); /** * Saves a thumbnail to the given write stream. @@ -69,4 +69,3 @@ bool saveThumbnail(Common::WriteStream &out, const Graphics::Surface &thumb); } // End of namespace Graphics #endif - diff --git a/graphics/yuv_to_rgb.cpp b/graphics/yuv_to_rgb.cpp index bdc481016e..feda48bf6d 100644 --- a/graphics/yuv_to_rgb.cpp +++ b/graphics/yuv_to_rgb.cpp @@ -8,19 +8,16 @@ * 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$ - * */ // The YUV to RGB conversion code is derived from SDL's YUV overlay code, which diff --git a/graphics/yuv_to_rgb.h b/graphics/yuv_to_rgb.h index e85c104098..2d3b9e634e 100644 --- a/graphics/yuv_to_rgb.h +++ b/graphics/yuv_to_rgb.h @@ -8,19 +8,16 @@ * 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$ - * */ /** |