diff options
author | clone2727 | 2012-09-20 13:17:39 -0700 |
---|---|---|
committer | clone2727 | 2012-09-20 13:17:39 -0700 |
commit | 2e4ee0b2d0f687deb16ca18691042de1a21d7410 (patch) | |
tree | 18af0d530c316695536bcc79847c8c7af35aa50b /graphics/surface.cpp | |
parent | 2a3ba6ac4ff8d4c03efb94fad8eaa36c9515c6f7 (diff) | |
parent | 167768669283620a2a951dcf212890a37cf1d6b8 (diff) | |
download | scummvm-rg350-2e4ee0b2d0f687deb16ca18691042de1a21d7410.tar.gz scummvm-rg350-2e4ee0b2d0f687deb16ca18691042de1a21d7410.tar.bz2 scummvm-rg350-2e4ee0b2d0f687deb16ca18691042de1a21d7410.zip |
Merge pull request #275 from clone2727/pegasus
Pegasus engine (The Journeyman Project: Pegasus Prime)
Diffstat (limited to 'graphics/surface.cpp')
-rw-r--r-- | graphics/surface.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/graphics/surface.cpp b/graphics/surface.cpp index c0f1046eae..a37dd57e61 100644 --- a/graphics/surface.cpp +++ b/graphics/surface.cpp @@ -49,6 +49,17 @@ void Surface::drawLine(int x0, int y0, int x1, int y1, uint32 color) { error("Surface::drawLine: bytesPerPixel must be 1, 2, or 4"); } +void Surface::drawThickLine(int x0, int y0, int x1, int y1, int penX, int penY, uint32 color) { + if (format.bytesPerPixel == 1) + Graphics::drawThickLine(x0, y0, x1, y1, penX, penY, color, plotPoint<byte>, this); + else if (format.bytesPerPixel == 2) + Graphics::drawThickLine(x0, y0, x1, y1, penX, penY, color, plotPoint<uint16>, this); + else if (format.bytesPerPixel == 4) + Graphics::drawThickLine(x0, y0, x1, y1, penX, penY, color, plotPoint<uint32>, this); + else + error("Surface::drawThickLine: bytesPerPixel must be 1, 2, or 4"); +} + void Surface::create(uint16 width, uint16 height, const PixelFormat &f) { free(); |