From 3d59f805202bd1d2161baa69902d377fa01ee7c6 Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Sun, 25 Nov 2007 23:26:50 +0000 Subject: don't expose the Common::drawLine implementation details in client code, keep it local to graphics.cpp. svn-id: r29640 --- engines/touche/graphics.h | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'engines/touche/graphics.h') diff --git a/engines/touche/graphics.h b/engines/touche/graphics.h index 74928cefcf..6b4072d896 100644 --- a/engines/touche/graphics.h +++ b/engines/touche/graphics.h @@ -30,11 +30,6 @@ namespace Touche { -struct drawProcP { - uint8 *dst; - int width; -}; - class Graphics { public: @@ -49,15 +44,10 @@ public: static int drawChar16(uint8 *dst, int dstPitch, uint8 chr, int x, int y, uint16 color); static void fillRect(uint8 *dst, int dstPitch, int x, int y, int w, int h, uint8 color); static void drawRect(uint8 *dst, int dstPitch, int x, int y, int w, int h, uint8 color1, uint8 color2); + static void drawLine(uint8 *dst, int dstPitch, int x1, int y1, int x2, int y2, uint8 color); static void copyRect(uint8 *dst, int dstPitch, int dstX, int dstY, const uint8 *src, int srcPitch, int srcX, int srcY, int w, int h, int flags = 0); static void copyMask(uint8 *dst, int dstPitch, int dstX, int dstY, const uint8 *src, int srcPitch, int srcX, int srcY, int w, int h, uint8 fillColor); - static void drawProc(int x, int y, int c, void *data) { - drawProcP *param = (drawProcP *)data; - - *(param->dst + y * param->width + x) = c; - } - private: /* font data for english version */ -- cgit v1.2.3