aboutsummaryrefslogtreecommitdiff
path: root/graphics/surface.cpp
diff options
context:
space:
mode:
authorclone27272012-09-20 13:17:39 -0700
committerclone27272012-09-20 13:17:39 -0700
commit2e4ee0b2d0f687deb16ca18691042de1a21d7410 (patch)
tree18af0d530c316695536bcc79847c8c7af35aa50b /graphics/surface.cpp
parent2a3ba6ac4ff8d4c03efb94fad8eaa36c9515c6f7 (diff)
parent167768669283620a2a951dcf212890a37cf1d6b8 (diff)
downloadscummvm-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.cpp11
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();