From 51fd528fe56e00466255d54e1e71b19f34729bfd Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 30 Sep 2010 13:02:16 +0000 Subject: GOB: Change all drawing to use class Surface svn-id: r52947 --- engines/gob/driver_vga.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'engines/gob/driver_vga.h') diff --git a/engines/gob/driver_vga.h b/engines/gob/driver_vga.h index 3102016cb5..18a2e252cb 100644 --- a/engines/gob/driver_vga.h +++ b/engines/gob/driver_vga.h @@ -35,20 +35,20 @@ public: VGAVideoDriver() {} virtual ~VGAVideoDriver() {} - void putPixel(int16 x, int16 y, byte color, SurfaceDesc &dest); - void drawLine(SurfaceDesc &dest, int16 x0, int16 y0, + void putPixel(int16 x, int16 y, byte color, Surface &dest); + void drawLine(Surface &dest, int16 x0, int16 y0, int16 x1, int16 y1, byte color); - void fillRect(SurfaceDesc &dest, int16 left, int16 top, + void fillRect(Surface &dest, int16 left, int16 top, int16 right, int16 bottom, byte color); void drawLetter(unsigned char item, int16 x, int16 y, const Font &font, byte color1, byte color2, - byte transp, SurfaceDesc &dest); - void drawSprite(SurfaceDesc &source, SurfaceDesc &dest, int16 left, + byte transp, Surface &dest); + void drawSprite(Surface &source, Surface &dest, int16 left, int16 top, int16 right, int16 bottom, int16 x, int16 y, int16 transp); - void drawSpriteDouble(SurfaceDesc &source, SurfaceDesc &dest, int16 left, + void drawSpriteDouble(Surface &source, Surface &dest, int16 left, int16 top, int16 right, int16 bottom, int16 x, int16 y, int16 transp); void drawPackedSprite(byte *sprBuf, int16 width, int16 height, - int16 x, int16 y, byte transp, SurfaceDesc &dest); + int16 x, int16 y, byte transp, Surface &dest); }; } -- cgit v1.2.3 From 4f2b58b11740c8bdeb728a4798e572e8c9d1d990 Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Thu, 30 Sep 2010 13:02:50 +0000 Subject: GOB: Remove the now useless VGAVideoDriver svn-id: r52948 --- engines/gob/driver_vga.h | 56 ------------------------------------------------ 1 file changed, 56 deletions(-) delete mode 100644 engines/gob/driver_vga.h (limited to 'engines/gob/driver_vga.h') diff --git a/engines/gob/driver_vga.h b/engines/gob/driver_vga.h deleted file mode 100644 index 18a2e252cb..0000000000 --- a/engines/gob/driver_vga.h +++ /dev/null @@ -1,56 +0,0 @@ -/* 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 GOB_DRIVER_VGA_H -#define GOB_DRIVER_VGA_H - -#include "gob/video.h" - -namespace Gob { - -class VGAVideoDriver : public VideoDriver { -public: - VGAVideoDriver() {} - virtual ~VGAVideoDriver() {} - - void putPixel(int16 x, int16 y, byte color, Surface &dest); - void drawLine(Surface &dest, int16 x0, int16 y0, - int16 x1, int16 y1, byte color); - void fillRect(Surface &dest, int16 left, int16 top, - int16 right, int16 bottom, byte color); - void drawLetter(unsigned char item, int16 x, int16 y, - const Font &font, byte color1, byte color2, - byte transp, Surface &dest); - void drawSprite(Surface &source, Surface &dest, int16 left, - int16 top, int16 right, int16 bottom, int16 x, int16 y, int16 transp); - void drawSpriteDouble(Surface &source, Surface &dest, int16 left, - int16 top, int16 right, int16 bottom, int16 x, int16 y, int16 transp); - void drawPackedSprite(byte *sprBuf, int16 width, int16 height, - int16 x, int16 y, byte transp, Surface &dest); -}; - -} - -#endif // GOB_DRIVER_VGA_H -- cgit v1.2.3