diff options
author | Gregory Montoir | 2007-11-25 23:26:50 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-11-25 23:26:50 +0000 |
commit | 3d59f805202bd1d2161baa69902d377fa01ee7c6 (patch) | |
tree | 80dee7bda4ee042b3232142dc645168b9a03cfcc /engines/touche/graphics.h | |
parent | 7844ad6f2c5499a1dfd9430cd57686ed36d908c9 (diff) | |
download | scummvm-rg350-3d59f805202bd1d2161baa69902d377fa01ee7c6.tar.gz scummvm-rg350-3d59f805202bd1d2161baa69902d377fa01ee7c6.tar.bz2 scummvm-rg350-3d59f805202bd1d2161baa69902d377fa01ee7c6.zip |
don't expose the Common::drawLine implementation details in client code, keep it local to graphics.cpp.
svn-id: r29640
Diffstat (limited to 'engines/touche/graphics.h')
-rw-r--r-- | engines/touche/graphics.h | 12 |
1 files changed, 1 insertions, 11 deletions
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 */ |